Created
July 28, 2019 02:44
-
-
Save kimuradev/9c3da3bcac588c5a84be6a3a9d128493 to your computer and use it in GitHub Desktop.
PWA Medium
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
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