Skip to content

Commit

Permalink
[main] fix for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Dec 6, 2024
1 parent a6c8c83 commit ae789f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/common/main/lib/util/docserviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit ae789f0

Please sign in to comment.