Skip to content

Instantly share code, notes, and snippets.

@elwinschmitz
Created November 22, 2023 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elwinschmitz/52506d72303ef4137863c06f57ece2b7 to your computer and use it in GitHub Desktop.
Save elwinschmitz/52506d72303ef4137863c06f57ece2b7 to your computer and use it in GitHub Desktop.
(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