diff --git a/apps/common/main/lib/util/docserviceworker.js b/apps/common/main/lib/util/docserviceworker.js index dfad17a1ae..fa2881eb2d 100644 --- a/apps/common/main/lib/util/docserviceworker.js +++ b/apps/common/main/lib/util/docserviceworker.js @@ -10,7 +10,9 @@ }) .then(function (registrations) { //delete stale service workers - for (const registration of registrations) { + //for (const registration of registrations) { + for (let r of registrations) { + registration = registrations[r]; if (registration !== reg && registration.active && registration.active.scriptURL.endsWith(serviceWorkerName)) { registration.unregister(); }