Use IE11-compatible code for worker deregistration. (#5079)
Fixes #5078.
This commit is contained in:
parent
a5ccfb2f99
commit
cf12edb861
|
|
@ -60,9 +60,9 @@
|
|||
// Unregister all service workers before signing in to prevent cache issues, see github issue: #3707
|
||||
navigator.serviceWorker.getRegistrations().then(
|
||||
function (registrations) {
|
||||
for (let registration of registrations) {
|
||||
registrations.forEach(function (registration) {
|
||||
registration.unregister();
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,9 +47,9 @@
|
|||
// Unregister all service workers before signing in to prevent cache issues, see github issue: #3707
|
||||
navigator.serviceWorker.getRegistrations().then(
|
||||
function (registrations) {
|
||||
for (let registration of registrations) {
|
||||
registrations.forEach(function (registration) {
|
||||
registration.unregister();
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue