From 2eda1118462488af3e89b2c76d61956351e6a010 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 6 Dec 2024 21:47:17 +0000 Subject: [PATCH] Update apps/common/main/lib/util/docserviceworker.js --- apps/common/main/lib/util/docserviceworker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }