Created
November 12, 2018 01:32
-
-
Save adamabernathy/373d210b1cc7330454fcdfcc98a57943 to your computer and use it in GitHub Desktop.
Removes all services workers from browser via JS
This file contains hidden or 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(registrations => registrations.map(k => k.unregister())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment