Skip to content

Instantly share code, notes, and snippets.

@davidawad
Created October 14, 2019 21:14
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 davidawad/f62938d8bb49e032b64b51a4e9e990f3 to your computer and use it in GitHub Desktop.
Save davidawad/f62938d8bb49e032b64b51a4e9e990f3 to your computer and use it in GitHub Desktop.
kill service workers
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