diff options
| -rw-r--r-- | service-worker.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/service-worker.js b/service-worker.js new file mode 100644 index 0000000..7602b7e --- /dev/null +++ b/service-worker.js @@ -0,0 +1,9 @@ +/* no-op */ +self.addEventListener('install', () => self.skipWaiting()); +self.addEventListener('activate', () => { + self.clients.matchAll({ type: 'window' }).then((windowClients) => { + windowClients.forEach((windowClient) => { + windowClient.navigate(windowClient.url); + }); + }); +}); |
