Created
November 25, 2019 12:16
-
-
Save abdelfattah-atef94/b2e52fa5cdb3c688dc220364fb8df1ae 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
window.onload = () => { | |
'use strict'; | |
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker | |
.register('./sw.js'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment