From ae789f0b99aa4e43256be8b3b5f6131800f4f0f7 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 6 Dec 2024 21:46:45 +0000 Subject: [PATCH] [main] fix for IE --- apps/common/main/lib/util/docserviceworker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }