Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created June 19, 2018 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/610ef9e9551049abb5975bdbdea3a459 to your computer and use it in GitHub Desktop.
Save goofmint/610ef9e9551049abb5975bdbdea3a459 to your computer and use it in GitHub Desktop.
self.addEventListener('install', e => {
// インストール時に実行
});
self.addEventListener('activate', e => {
// アップデート時など
});
self.addEventListener('fetch', e => {
// 外部リソース取得時
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment