Skip to content

Commit 2ec0e5e

Browse files
committed
fix worker
1 parent 527e307 commit 2ec0e5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

worker.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
self.addEventListener('install', event => {
4-
self.importScripts('main.js');
54
// The skipWaiting() method allows this service worker to progress from the registration's
65
// waiting position to active even while service worker clients are using the registration.
76
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-global-scope-skipwaiting
@@ -16,3 +15,5 @@ self.addEventListener('activate', event => {
1615
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#clients-claim-method
1716
event.waitUntil(self.clients.claim());
1817
});
18+
19+
self.importScripts('main.js');

0 commit comments

Comments
 (0)