Skip to content

Commit

Permalink
Update apps/common/main/lib/util/docserviceworker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Dec 9, 2024
1 parent 2eda111 commit f1b9b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/common/main/lib/util/docserviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f1b9b3f

Please sign in to comment.