From 922302ed8e5b8c76815cc0d9f0ee498566e77eb3 Mon Sep 17 00:00:00 2001 From: yaso Date: Wed, 18 Sep 2024 14:16:00 +0200 Subject: [PATCH] SWV update --- Frontend/patient_manager/web/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/patient_manager/web/index.html b/Frontend/patient_manager/web/index.html index d9d21c67..5acd51a9 100644 --- a/Frontend/patient_manager/web/index.html +++ b/Frontend/patient_manager/web/index.html @@ -156,7 +156,7 @@ const currentSWVersion = reg.active.scriptURL.split("=")[1]; console.log('Active Service Worker Version: ' + serviceWorkerVersion); console.log('Latest Service Worker Version: ' + currentSWVersion); - const isMatch = currentSWVersion === serviceWorkerVersion; + const isMatch = currentSWVersion === serviceWorkerVersion.replaceAll("\"", ""); console.log('On Latest Service Woprker: ' + isMatch); if (!reg.active && (reg.installing || reg.waiting)) { // No active web worker and we have installed or are installing