1if ("serviceWorker" in navigator) { 2 navigator.serviceWorker 3 .register("/static/sw.js", { 4 scope: '/static/js/' 5 }) 6 .then(function (registration) { 7 registration.addEventListener("updatefound", function () {}); 8 }) 9 .catch(function (error) { 10 console.log("Service worker registration failed:", error); 11 }); 12 } else { 13 console.warn("Service workers are not supported."); 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.