From 5977740c43cc57556a5cedab03da4b73febd87ca Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 29 Aug 2023 21:12:22 +0200 Subject: [PATCH] fixed a typo; also I had to comment out the service worker registration b/c Firefox is giving me crap about the URL --- src/js/sr2ini.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/sr2ini.js b/src/js/sr2ini.js index 5fb7178..71d90c6 100644 --- a/src/js/sr2ini.js +++ b/src/js/sr2ini.js @@ -1,5 +1,5 @@ // Register Service Worker -if ("serviceWorker" in navigator) { +/*if ("serviceWorker" in navigator) { navigator.serviceWorker.register( new URL("./service-worker.js"), { type: "module" } ).then( (registration) => { @@ -9,7 +9,7 @@ if ("serviceWorker" in navigator) { }); } else { console.error("Service workers are not supported."); -} +}*/ /* @@ -60,7 +60,7 @@ const DAMAGE_MONITOR_HTML = [ '\n', '\n', '\n', - '\n', + '\n', '\n', ''].join("");