Created
September 17, 2020 03:03
-
-
Save gauravmuk/c088f616b477fb0e9bbf50c7f07b7f19 to your computer and use it in GitHub Desktop.
Remove Service Worker
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
navigator.serviceWorker | |
.getRegistrations() | |
.then(function (registrations) { | |
for (let registration of registrations) { | |
registration.unregister(); | |
} | |
}) | |
.catch(function (err) { | |
console.log("Service Worker registration failed: ", err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment