diff --git a/src/platform/web/dom/ServiceWorkerHandler.js b/src/platform/web/dom/ServiceWorkerHandler.js index 668c7d64..f5bae8d0 100644 --- a/src/platform/web/dom/ServiceWorkerHandler.js +++ b/src/platform/web/dom/ServiceWorkerHandler.js @@ -42,7 +42,8 @@ export class ServiceWorkerHandler { this._currentController = navigator.serviceWorker.controller; this._registration.addEventListener("updatefound", this); this._registrationPromise = null; - if (this._registration.waiting) { + // do we have a new service worker waiting to activate? + if (this._registration.waiting && this._registration.active) { this._proposeUpdate(); } console.log("Service Worker registered");