From 5d691af8a16ebf9667bcac16c4343c59bd118a72 Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Wed, 9 Dec 2020 22:03:34 +0000 Subject: [PATCH] Simpler fallback --- src/copy/sw.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/copy/sw.js b/src/copy/sw.js index b5767ccf..43849e63 100644 --- a/src/copy/sw.js +++ b/src/copy/sw.js @@ -1,14 +1,4 @@ // I accidentally shipped with the wrong service worker name. // This picks up users that still might be using that version. // We'll be able to delete this file eventually. - -addEventListener('install', () => { - skipWaiting(); -}); -addEventListener('activate', async () => { - await self.registration.unregister(); - const allClients = await clients.matchAll({ - includeUncontrolled: true, - }); - for (const client of allClients) client.navigate('/'); -}); +skipWaiting();