1var me = self; 2 3self.addEventListener('fetch', function(event){ 4});//we need for add to screen 5 6self.addEventListener('install', function(event) { 7 console.log('SW installed!'); 8 event.waitUntil(self.skipWaiting()); // Activate worker immediately 9}); 10 11 12self.addEventListener('activate', function(event) { 13 console.log('SW activated!'); 14 event.waitUntil(self.clients.claim()); // Become available to all pages 15}); 16 17 18self.addEventListener('notificationclick', function(event) { 19 // console.log('[Service Worker] Notification click Received.'); 20 21 event.notification.close(); 22 23 // event.waitUntil( 24 // clients.openWindow('https://developers.google.com/web/') 25 // ); 26});
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.