Last active
January 26, 2018 16:09
-
-
Save mnsmarcelo/4006ed6de3be4728c31b2624dd16395a 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){ | |
navigator.serviceWorker | |
.register('sw.js') | |
.then(function () { | |
console.log('Service worker está registrado!'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment