Created
November 22, 2023 18:42
-
-
Save elwinschmitz/52506d72303ef4137863c06f57ece2b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
navigator.serviceWorker.getRegistrations() | |
.then((registrations) => { | |
for(let registration of registrations) { | |
registration.unregister().then( | |
() => { alert('Ok.') }, | |
() => { alert('No.') } | |
); | |
} | |
}); | |
}()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment