PageSourceSearch

https://my.grandhotelwiesler.com/registerSW.js

js grandhotelwiesler.com collected 2026-10-02 19:54:29 UTC 446 bytes, 11 lines download raw bytes

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.