From bda88ca138cbf71bccb14c63b0f76a2044f3a4f1 Mon Sep 17 00:00:00 2001 From: ayoayco Date: Sun, 18 Aug 2024 10:52:59 +0200 Subject: [PATCH] debug: log old sw --- src/layouts/Layout.astro | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index f59b310..989b7ef 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -53,6 +53,7 @@ const appTitle = article?.title ? `${article.title} | Cozy` : 'Cozy'; // check to see if there is a current active service worker const oldSw = (await navigator.serviceWorker.getRegistration())?.active?.state; + console.log('>>> old sw', oldSw); navigator.serviceWorker.addEventListener('controllerchange', async () => { if (refreshing) return;