Created
March 8, 2018 02:17
-
-
Save ikasoumen/490e6292fa365ad9abe35588d6736011 to your computer and use it in GitHub Desktop.
pixiv_inside_pwa_2
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
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker.register('/sw.js') | |
.then(function(registration) { | |
// 登録成功時の処理 | |
}).catch(function(err) { | |
// 登録失敗時の処理 | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment