Akash Joshi 7 éve
szülő
commit
6ed6b538bd
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      server/offline/sw.js

+ 2 - 1
server/offline/sw.js

@@ -1,5 +1,6 @@
 // This is the "Offline copy of pages" service worker
 
+// eslint-disable-next-line no-restricted-globals
 self.addEventListener('install', event => {
   const indexPage = new Request('index.html');
   event.waitUntil(
@@ -9,7 +10,7 @@ self.addEventListener('install', event => {
   );
 });
 
-// If any fetch fails, it will look for the request in the cache and serve it from there first
+// eslint-disable-next-line no-restricted-globals
 self.addEventListener('fetch', event => {
   const updateCache = request =>
     caches