summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");
}
});
-)
+}