-
Notifications
You must be signed in to change notification settings - Fork 2
/
sw.js
1 lines (1 loc) · 1.34 KB
/
sw.js
1
if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let r=Promise.resolve();return s[e]||(r=new Promise((async r=>{if("document"in self){const s=document.createElement("script");s.src=e,document.head.appendChild(s),s.onload=r}else importScripts(e),r()}))),r.then((()=>{if(!s[e])throw new Error(`Module ${e} didn’t register its module`);return s[e]}))},r=(r,s)=>{Promise.all(r.map(e)).then((e=>s(1===e.length?e[0]:e)))},s={require:Promise.resolve(r)};self.define=(r,t,i)=>{s[r]||(s[r]=Promise.resolve().then((()=>{let s={};const n={uri:location.origin+r.slice(1)};return Promise.all(t.map((r=>{switch(r){case"exports":return s;case"module":return n;default:return e(r)}}))).then((e=>{const r=i(...e);return s.default||(s.default=r),s}))})))}}define("./sw.js",["./workbox-8515eb2f"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"manifest.json",revision:"268f2df38a1abdc8150f51216d88d228"},{url:"index.html",revision:"6185cf7f243d4b961c5413369f62e3ba"},{url:"dist/app.js",revision:"8ebfb7cbc7df75b9bb2c5f609098fbff"}],{}),e.registerRoute(/https:\/\/unpkg.com/,new e.StaleWhileRevalidate,"GET"),e.registerRoute(/https:\/\/www.gstatic.com/,new e.StaleWhileRevalidate,"GET"),e.registerRoute(/https:\/\/hacker-news.firebaseio.com/,new e.StaleWhileRevalidate,"GET"),e.registerRoute(/\.(?:png|jpg|jpeg|svg)$/,new e.CacheFirst,"GET")}));