Created
July 14, 2020 09:15
-
-
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.
This file contains 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
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