diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 989b7ef..13212a6 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -60,6 +60,7 @@ const appTitle = article?.title ? `${article.title} | Cozy` : 'Cozy'; // when the controllerchange event has fired, we get the new service worker const newSw = (await navigator.serviceWorker.getRegistration())?.active?.state; + console.log('>>> new sw', newSw); // if there was already an old activated service worker, and a new activating service worker, do the reload if(oldSw === 'activated' && newSw === 'activating') {