blob: d2d4449dedb4104497ff043b32a49facceb76932 (
plain)
1
2
3
4
5
6
7
8
9
|
self.addEventListener('install', () => {
// activate this service worker immediately
self.skipWaiting();
});
self.addEventListener('activate', event => {
// let this service worker control window clients immediately
event.waitUntil(self.clients.claim());
});
|