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