From f1b9b3f9e04c2dd2269ca78e7745ebeacce6bc05 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 9 Dec 2024 16:18:22 +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 d2a9fb9460..d8be6af0a8 100644 --- a/apps/common/main/lib/util/docserviceworker.js +++ b/apps/common/main/lib/util/docserviceworker.js @@ -11,7 +11,7 @@ .then(function (registrations) { //delete stale service workers //for (const registration of registrations) { - for (let r of registrations) { + for (let r in registrations) { const registration = registrations[r]; if (registration !== reg && registration.active && registration.active.scriptURL.endsWith(serviceWorkerName)) { registration.unregister();