1if ('serviceWorker' in navigator) { 2 navigator.serviceWorker.register('/sw-main.js', {scope: '/'}) 3 .then((reg) => { 4 // registration worked 5 console.log('Registration succeeded. Scope is ' + reg.scope); 6 }).catch((error) => { 7 // registration failed 8 console.log('Registration failed with ' + error); 9 }); 10} 11 12window.addEventListener('appinstalled', function() { 13 new Image().src = '/counter/asp_show/?position=369'; 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.