From fcf5d130cbb91da5c2439aadfbbb62bcbed1b35b Mon Sep 17 00:00:00 2001 From: sijanec Date: Sat, 8 Feb 2020 20:42:10 +0100 Subject: maybe I'm retarded --- js/app.js | 4 ++-- 1 file 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"); } }); -) +} -- cgit v1.2.3