1if ("serviceWorker" in navigator && window.Capacitor?.isNativePlatform()) { 2 //Capacitor does not like service workers, breaks native plugins 3 window.addEventListener("load", () => { 4 navigator.serviceWorker.register("/service-worker.js", { scope: "/" }); 5 }); 6 7 navigator.serviceWorker.addEventListener("controllerchange", () => { 8 console.info("New service worker activated, reloading page..."); 9 window.location.reload(); 10 }); 11}
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.