1 2self.addEventListener('install', (e) => { 3 self.skipWaiting(); 4}); 5self.addEventListener('activate', (e) => { 6 self.registration.unregister() 7 .then(() => self.clients.matchAll()) 8 .then((clients) => { 9 clients.forEach((client) => { 10 if (client instanceof WindowClient) 11 client.navigate(client.url); 12 }); 13 return Promise.resolve(); 14 }) 15 .then(() => { 16 self.caches.keys().then((cacheNames) => { 17 Promise.all( 18 cacheNames.map((cacheName) => { 19 return self.caches.delete(cacheName); 20 }), 21 ); 22 }) 23 }); 24}); 25
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.