We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 527e307 commit 2ec0e5eCopy full SHA for 2ec0e5e
worker.js
@@ -1,7 +1,6 @@
1
'use strict';
2
3
self.addEventListener('install', event => {
4
- self.importScripts('main.js');
5
// The skipWaiting() method allows this service worker to progress from the registration's
6
// waiting position to active even while service worker clients are using the registration.
7
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-global-scope-skipwaiting
@@ -16,3 +15,5 @@ self.addEventListener('activate', event => {
16
15
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#clients-claim-method
17
event.waitUntil(self.clients.claim());
18
});
+
19
+self.importScripts('main.js');
0 commit comments