-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsw.js
2 lines (2 loc) · 1.22 KB
/
sw.js
1
2
if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let s=Promise.resolve();return r[e]||(s=new Promise(async s=>{if("document"in self){const r=document.createElement("script");r.src=e,document.head.appendChild(r),r.onload=s}else importScripts(e),s()})),s.then(()=>{if(!r[e])throw new Error(`Module ${e} didn’t register its module`);return r[e]})},s=(s,r)=>{Promise.all(s.map(e)).then(e=>r(1===e.length?e[0]:e))},r={require:Promise.resolve(s)};self.define=(s,t,i)=>{r[s]||(r[s]=Promise.resolve().then(()=>{let r={};const o={uri:location.origin+s.slice(1)};return Promise.all(t.map(s=>{switch(s){case"exports":return r;case"module":return o;default:return e(s)}})).then(e=>{const s=i(...e);return r.default||(r.default=s),r})}))}}define("./sw.js",["./workbox-4c6fd173"],(function(e){"use strict";self.addEventListener("message",e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}),e.precacheAndRoute([{url:"assets/images/avatar.svg",revision:"f3d647dd5b319ed40e480fcb0c342764"},{url:"assets/sounds/joke.mp3",revision:"f4eaeda91863fb8649d6549e4636c12e"},{url:"assets/stylesheets/base.css",revision:"77661340384e38101455824cec942782"},{url:"index.html",revision:"dacf225df51946a840f19c4a839fceee"}],{})}));
//# sourceMappingURL=sw.js.map