summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-08 21:46:44 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-08 21:46:44 +0100
commitcac0bbf6e166580ed0d6233f1b66d39b023b163d (patch)
treefff52c8867adca6e8757a2123f6e23ff56d9b2b2
parentsw.js must not be cached! (diff)
parentmaybe I'm retarded (diff)
downloadbeziapp-cac0bbf6e166580ed0d6233f1b66d39b023b163d.tar
beziapp-cac0bbf6e166580ed0d6233f1b66d39b023b163d.tar.gz
beziapp-cac0bbf6e166580ed0d6233f1b66d39b023b163d.tar.bz2
beziapp-cac0bbf6e166580ed0d6233f1b66d39b023b163d.tar.lz
beziapp-cac0bbf6e166580ed0d6233f1b66d39b023b163d.tar.xz
beziapp-cac0bbf6e166580ed0d6233f1b66d39b023b163d.tar.zst
beziapp-cac0bbf6e166580ed0d6233f1b66d39b023b163d.zip
-rw-r--r--js/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/app.js b/js/app.js
index 33a0f55..137541f 100644
--- a/js/app.js
+++ b/js/app.js
@@ -5,10 +5,10 @@ if ("serviceWorker" in navigator) {
}
// Listen to messages from service workers.
-if(navigator.serviceWorker)(
+if(navigator.serviceWorker) {
navigator.serviceWorker.addEventListener('message', (event) => {
if (event.data.msg === "install") {
window.location.replace("/index.html");
}
});
-)
+}