Created
April 24, 2018 14:30
-
-
Save stevepiron/b1f79950dcac176cb8774830b8c9d068 to your computer and use it in GitHub Desktop.
Basic service worker registration
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('/service-worker.js'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment