summaryrefslogtreecommitdiffstats
path: root/js/app.js
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-08 19:47:00 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-08 19:47:00 +0100
commit2be5a0d5e441ef71568b75a738c5b07b738ab973 (patch)
tree944ca94b117700cf8c7cf05d516adc7820afcff9 /js/app.js
parentempty .gitignore so github doesn't remove node_modules and package-lock (diff)
downloadbeziapp-2be5a0d5e441ef71568b75a738c5b07b738ab973.tar
beziapp-2be5a0d5e441ef71568b75a738c5b07b738ab973.tar.gz
beziapp-2be5a0d5e441ef71568b75a738c5b07b738ab973.tar.bz2
beziapp-2be5a0d5e441ef71568b75a738c5b07b738ab973.tar.lz
beziapp-2be5a0d5e441ef71568b75a738c5b07b738ab973.tar.xz
beziapp-2be5a0d5e441ef71568b75a738c5b07b738ab973.tar.zst
beziapp-2be5a0d5e441ef71568b75a738c5b07b738ab973.zip
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/app.js b/js/app.js
index 97e671f..33a0f55 100644
--- a/js/app.js
+++ b/js/app.js
@@ -5,8 +5,10 @@ if ("serviceWorker" in navigator) {
}
// Listen to messages from service workers.
+if(navigator.serviceWorker)(
navigator.serviceWorker.addEventListener('message', (event) => {
if (event.data.msg === "install") {
window.location.replace("/index.html");
}
-}); \ No newline at end of file
+});
+)