diff options
author | rstular <rok@stular.eu> | 2020-02-17 15:15:55 +0100 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-02-17 15:15:55 +0100 |
commit | fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94 (patch) | |
tree | 803184e820a5002418a19ce4685d4621b7910b76 /js/app.js | |
parent | neki sm delu, sam ne do konca (diff) | |
download | beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.gz beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.bz2 beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.lz beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.xz beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.zst beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.zip |
Diffstat (limited to '')
-rw-r--r-- | js/app.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -5,12 +5,12 @@ 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"); - } -}); +if (navigator.serviceWorker) { + navigator.serviceWorker.addEventListener('message', (event) => { + if (event.data.msg === "install") { + window.location.replace("/index.html"); + } + }); } if (location.protocol != 'https:') { |