Use IE11-compatible code for worker deregistration. (#5079)
Fixes #5078.
This commit is contained in:
parent
a5ccfb2f99
commit
cf12edb861
|
|
@ -59,10 +59,10 @@
|
|||
if (location.protocol === 'https:') {
|
||||
// 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) {
|
||||
function (registrations) {
|
||||
registrations.forEach(function (registration) {
|
||||
registration.unregister();
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,10 +46,10 @@
|
|||
if (location.protocol === 'https:') {
|
||||
// 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) {
|
||||
function (registrations) {
|
||||
registrations.forEach(function (registration) {
|
||||
registration.unregister();
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue