Browse Source

Update sw.js

Akash Joshi 7 năm trước cách đây
mục cha
commit
e900c3798e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      server/offline/sw.js

+ 2 - 0
server/offline/sw.js

@@ -1,5 +1,7 @@
 // This is the "Offline copy of pages" service worker
 
+const {self} = WorkerGlobalScope;
+
 self.addEventListener('install', event => {
   const indexPage = new Request('index.html');
   event.waitUntil(