-
Notifications
You must be signed in to change notification settings - Fork 0
/
sw.js
2 lines (2 loc) · 1.21 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,i,t)=>{r[s]||(r[s]=Promise.resolve().then((()=>{let r={};const o={uri:location.origin+s.slice(1)};return Promise.all(i.map((s=>{switch(s){case"exports":return r;case"module":return o;default:return e(s)}}))).then((e=>{const s=t(...e);return r.default||(r.default=s),r}))})))}}define("./sw.js",["./workbox-b2aca18b"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/css/base.css",revision:"75b790c9bd6f6432ff886549fa9a9afc"},{url:"assets/img/avatar.png",revision:"0559b7664eb572c1905a22fa9eec59e7"},{url:"favicon.ico",revision:"86b95007242f5bbc5e8e45776a46037e"},{url:"index.html",revision:"039e90c619389640edd2c4b99d736f5f"}],{})}));
//# sourceMappingURL=sw.js.map