[Minor] Fixed wrong detection of new APP version

This commit is contained in:
Robert von Burg 2024-03-12 09:18:54 +01:00
parent 996cf04366
commit 1127587dd2
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
3 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,7 @@
|| scmRevision === 'undefined') {
sessionStorage.appScmRevision = scmRevision;
console.log("App SCM Revision is now known as " + scmRevision);
} else if (scmRevision !== currentVersion) {
} else if (scmRevision !== undefined && scmRevision !== currentVersion) {
console.log("App SCM Revision has changed from " + currentVersion + " to " + scmRevision + ". Need to refresh browser...");
this.fire("strolch-app-version-outdated", {newVersion: scmRevision});

View File

@ -211,7 +211,7 @@
|| scmRevision === 'undefined') {
sessionStorage.appScmRevision = scmRevision;
console.log("App SCM Revision is now known as " + scmRevision);
} else if (scmRevision !== currentVersion) {
} else if (scmRevision !== undefined && scmRevision !== currentVersion) {
console.log("App SCM Revision has changed from " + currentVersion + " to " + scmRevision + ". Need to refresh browser...");
this.fire("strolch-app-version-outdated", {newVersion: scmRevision});

View File

@ -211,7 +211,7 @@
|| scmRevision === 'undefined') {
sessionStorage.appScmRevision = scmRevision;
console.log("App SCM Revision is now known as " + scmRevision);
} else if (scmRevision !== currentVersion) {
} else if (scmRevision !== undefined && scmRevision !== currentVersion) {
console.log("App SCM Revision has changed from " + currentVersion + " to " + scmRevision + ". Need to refresh browser...");
this.fire("strolch-app-version-outdated", {newVersion: scmRevision});