Skip to content

Instantly share code, notes, and snippets.

@meduzen
Created July 14, 2020 09:15
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 meduzen/131092af1972432bb4d635da38e49ad3 to your computer and use it in GitHub Desktop.
Save meduzen/131092af1972432bb4d635da38e49ad3 to your computer and use it in GitHub Desktop.
Run this in your browser console or in your app to clean all Service Workers.
if('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for(let registration of registrations) {
registration.unregister()
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment