sw: start immediately
parent
665fe9be85
commit
aecc528f38
|
@ -36,3 +36,9 @@ registerRoute(/^.*\/.*$/, new NetworkFirst({
|
|||
}),
|
||||
],
|
||||
}));
|
||||
|
||||
self.addEventListener('activate', event => {
|
||||
// Take control of all pages under this SW's scope immediately,
|
||||
// instead of waiting for reload/navigation.
|
||||
event.waitUntil(self.clients.claim());
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue