1// Service Worker for Codir push notifications 2const CACHE_VERSION = 'codir-v2'; 3 4self.addEventListener('install', (event) => { 5 self.skipWaiting(); 6}); 7 8self.addEventListener('activate', (event) => { 9 event.waitUntil(clients.claim()); 10}); 11 12self.addEventListener('push', (event) => { 13 if (!event.data) return; 14 const data = event.data.json(); 15 event.waitUntil( 16 self.registration.showNotification(data.title, { 17 body: data.body, 18 icon: data.icon || '/icons/icon-192x192.png', 19 badge: data.icon || '/icons/icon-192x192.png', 20 }) 21 ); 22});
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.