From 43bf13a7f08006b7acfab2690984c57329c68fb6 Mon Sep 17 00:00:00 2001 From: yaso Date: Wed, 18 Sep 2024 13:50:23 +0200 Subject: [PATCH] sw enhancement --- Frontend/patient_manager/web/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Frontend/patient_manager/web/index.html b/Frontend/patient_manager/web/index.html index 8869f5df..77aee47e 100644 --- a/Frontend/patient_manager/web/index.html +++ b/Frontend/patient_manager/web/index.html @@ -154,6 +154,8 @@ } console.log('Latest Service Worker Version: ' + serviceWorkerVersion); console.log('Active Service Worker and Version: ' + reg.active.scriptURL); + const isMatch = reg.active.scriptURL.endsWith(serviceWorkerVersion) + 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 // one for the first time. Simply wait for it to activate.