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