1 // registrando o service worker para navegadores com suporte 2 /*if ('serviceWorker' in navigator) { 3 navigator.serviceWorker.register('sw.js').then(() => { 4 //console.log('Service Worker registrado com sucesso.'); 5 }).catch(error => { 6 console.log('Service Worker falhou:', error); 7 }); 8 }*/ 9 if ('serviceWorker' in navigator) { 10 window.addEventListener('load', function() { 11 navigator.serviceWorker.register('pwabuilder-sw.js'); 12 }); 13 }
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.