mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
3 lines
917 B
JavaScript
3 lines
917 B
JavaScript
if(!self.define){let e,t={};const s=(s,n)=>(s=new URL(s+".js",n).href,t[s]||new Promise((t=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=t,document.head.appendChild(e)}else e=s,importScripts(s),t()})).then((()=>{let e=t[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(t[o])return;let r={};const c=e=>s(e,o),u={module:{uri:o},exports:r,require:c};t[o]=Promise.all(n.map((e=>u[e]||c(e)))).then((e=>(i(...e),r)))}}define(["./workbox-0841e663"],(function(e){"use strict";e.setCacheNameDetails({prefix:"pptist"}),self.skipWaiting(),e.registerRoute(/.*/,new e.NetworkFirst({cacheName:"PPTist",plugins:[new e.ExpirationPlugin({maxAgeSeconds:36e3}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")}));
|
||
//# sourceMappingURL=service-worker.js.map
|