1 2window.addEventListener('load', () => { 3 4 if ('serviceWorker' in navigator){ 5 6 navigator.serviceWorker.register('./pwa_sw.js') 7 .then(registration => { 8 console.log('Service worker successfully registered', registration); 9 }) 10 .catch(error => { 11 console.log('Service worker registration failed', error); 12 }); 13 } 14});
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.