PageSourceSearch

https://www.raufossfotball.no/_/asset/ntfpwa:0000019dab7c0930/bundles/js/sw/register.js

js raufossfotball.no collected 2026-09-25 08:04:10 UTC 2,794 bytes, 1 lines download raw bytes

1var Starter;(()=>{"use strict";var e={d:(o,r)=>{for(var n in r)e.o(r,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:r[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{registerServiceWorker:()=>n,unregisterServiceWorker:()=>t});const r=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function n(e,o){if(console.log("Initializing register service worker!!!!"),"serviceWorker"in navigator){const o=new URL(e,window.location.href);if(console.log("publicUrl.origin !== window.location.origin",o.origin!==window.location.origin),o.origin!==window.location.origin)return;window.addEventListener("load",(()=>{var o=e.lastIndexOf("/")===e.length-1?e:e+"/";const n=`${o}sw.js`;if(null==t)var t={};t.appUrl=o,console.log("Event load: ",n),r?(console.log("call checkValidServiceWorker"),function(e,o){console.log("checkValidServiceWorker CALLED!!!!"),fetch(e,{headers:{"Service-Worker":"script"}}).then((r=>{console.log("fetch response: ",r);const n=r.headers.get("content-type");404===r.status||null!=n&&-1===n.indexOf("javascript")?(console.log("No service worker found!"),navigator.serviceWorker.ready.then((e=>{e.unregister().then((()=>{window.location.reload()}))}))):(console.log("Start register Service worker!"),i(e,o))})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))}(n,t),navigator.serviceWorker.ready.then((()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")}))):(console.log("call registerValidSW MAIN"),i(n,t))}))}}function i(e,o){console.log("Config: ",o),navigator.serviceWorker.register(e,{scope:o.appUrl}).then((e=>{console.log("Registration return sucessfull",e),e.onupdatefound=()=>{console.log("An update was found");const r=e.installing;null!=r&&(r.onstatechange=()=>{"installed"===r.state&&(console.log("Installed(navigator.serviceWorker.controller): ",navigator.serviceWorker.controller),navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),e.waiting.postMessage("skipWaiting"),o&&o.onUpdate&&o.onUpdate(e)):(console.log("Content is cached for offline use."),o&&o.onSuccess&&o.onSuccess(e)))})}})).catch((e=>{console.error("Error during service worker registration:",e)}))}function t(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((e=>{e.unregister()})).catch((e=>{console.error(e.message)}))}Starter=o})();

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.