1self.addEventListener("install", event => { 2 3}); 4self.addEventListener("activate", event => { 5 6}); 7self.addEventListener("fetch", event => { 8 9}); 10 11self.addEventListener("push", (event) => { 12 let data = event.data.json(); 13 let result = self.registration.showNotification(data.title, data.payload); 14 event.waitUntil(result); 15}); 16 17self.addEventListener ("notificationclick", async function (event) { 18 if (event.action) { 19 clients.openWindow(event.action); 20 } else { 21 clients.openWindow(event.notification.data.defaultAction); 22 } 23});
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.