Created
February 17, 2017 05:15
-
-
Save samthor/80f08ba53bcf50786c247b6c930353c1 to your computer and use it in GitHub Desktop.
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) { | |
// sw.js can literally be empty, but must exist | |
navigator.serviceWorker.register('/sw.js'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment