summaryrefslogtreecommitdiffstats
path: root/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/js/app.js b/js/app.js
deleted file mode 100644
index 97e671f..0000000
--- a/js/app.js
+++ /dev/null
@@ -1,12 +0,0 @@
-if ("serviceWorker" in navigator) {
- navigator.serviceWorker.register("/sw.js")
- .then(() => { })
- .catch((err) => console.log("Service worker registration failed", err));
-}
-
-// Listen to messages from service workers.
-navigator.serviceWorker.addEventListener('message', (event) => {
- if (event.data.msg === "install") {
- window.location.replace("/index.html");
- }
-}); \ No newline at end of file