您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

11 行
373 B

  1. self.addEventListener('install', async event => {
  2. console.log('Installing service worker...');
  3. self.skipWaiting();
  4. });
  5. self.addEventListener('fetch', event => {
  6. // You can add custom logic here for controlling whether to use cached data if offline, etc.
  7. // The following line opts out, so requests go directly to the network as usual.
  8. return null;
  9. });