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