mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[main] fix for IE
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user