From 5c294c34729eb6456f918e40e621447cb0a3b709 Mon Sep 17 00:00:00 2001 From: "Rasamoelina, Haja Onjatiana" <26148770+rhahao@users.noreply.github.com> Date: Sun, 15 May 2022 23:10:26 +0300 Subject: [PATCH] fix(sw): update exp 24 --- src/components/root/WithServiceWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/root/WithServiceWorker.js b/src/components/root/WithServiceWorker.js index 26587bec..fb0dec2b 100644 --- a/src/components/root/WithServiceWorker.js +++ b/src/components/root/WithServiceWorker.js @@ -117,8 +117,8 @@ export default class WithServiceWorker extends Component { registration.onupdatefound = () => { const installingWorker = registration.installing; installingWorker.onstatechange = () => { + console.log(installingWorker) if (installingWorker.state === 'installed') { - console.log(registration); console.log(navigator.serviceWorker); if (navigator.serviceWorker.controller) { onUpdated && onUpdated();