1self.addEventListener('push', function (event) { 2 console.log(event); 3 4 let data = event.data.json(); 5 6 if (data.title) { 7 var promise = self.registration.showNotification(data.title, data); 8 event.waitUntil(promise); 9 } 10}); 11 12self.addEventListener('notificationclick', function (event) { 13 event.notification.close(); 14 15 if (event.notification.data && event.notification.data.url) { 16 return self.clients.openWindow(event.notification.data.url); 17 } 18});
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.