diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/webapp/app/src/main/c-main.html b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/webapp/app/src/main/c-main.html index c4845cc..ad80311 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/webapp/app/src/main/c-main.html +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/webapp/app/src/main/c-main.html @@ -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}); diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/app/src/main/c-main.html b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/app/src/main/c-main.html index c4845cc..ad80311 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/app/src/main/c-main.html +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/app/src/main/c-main.html @@ -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}); diff --git a/strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/src/main/webapp/app/src/main/c-main.html b/strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/src/main/webapp/app/src/main/c-main.html index c4845cc..ad80311 100644 --- a/strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/src/main/webapp/app/src/main/c-main.html +++ b/strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/src/main/webapp/app/src/main/c-main.html @@ -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});