Created
August 11, 2018 08:41
-
-
Save masalib/e5a11f18be3cf04b15f826ebff67fa86 to your computer and use it in GitHub Desktop.
PWAとはサンプルソース4
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
// インストールイベント | |
self.addEventListener('install',e => { | |
console.log('Service Worker: sw.js is Installed'); | |
}); | |
// アクティブイベント | |
self.addEventListener('activate',e => { | |
console.log('Service Worker: sw.js is Activater '); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment