summaryrefslogtreecommitdiffstats
path: root/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/app.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/app.js b/js/app.js
index eebb62d..98da025 100644
--- a/js/app.js
+++ b/js/app.js
@@ -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:')
{