Created
October 2, 2017 07:10
-
-
Save osvaldasvalutis/1abcd5730be75b3669c7c91bf7ca7a23 to your computer and use it in GitHub Desktop.
Service Worker gotchas – https://medium.com/kollegorna/service-worker-gotchas-af20a9dab986
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
// a check if the technology is supported by browser | |
if('serviceWorker' in navigator) { | |
navigator.serviceWorker.register('/serviceworker.js'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment