Created
March 18, 2020 08:17
-
-
Save aircokol/556dd83743bb20cbbf2a38b636a464c7 to your computer and use it in GitHub Desktop.
Отключение service worker
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
| if(window.navigator && navigator.serviceWorker) { | |
| 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