1/* Station app: the browser offers the install, this registers the worker it 2 requires. The manifest points to /app/home, so the shortcut opens the app. */ 3(function () { 4 "use strict"; 5 6 if ("serviceWorker" in navigator) { 7 window.addEventListener("load", function () { 8 navigator.serviceWorker.register("/webapp-sw.js", { scope: "/" }).catch(function () {}); 9 }); 10 } 11 12 // The webapp counts installs here 13 window.addEventListener("appinstalled", function () { 14 fetch("/app/set.php").catch(function () {}); 15 }); 16})();
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.