fix version check (#1374)

Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
CaCO3
2022-11-18 06:54:51 +01:00
committed by GitHub
parent dd28859a9f
commit 513e300676
2 changed files with 6 additions and 3 deletions

View File

@@ -95,8 +95,11 @@ function compareVersions() {
arr = fwVersion.split(" ");
fWGitHash = arr[arr.length - 1].substring(0, 7);
arr = webUiVersion.split(" ");
webUiHash = arr[arr.length - 1].substring(0, 7);
console.log("FW Hash: " + fWGitHash + ", Web UI Hash: " + webUiHash);
if (fWGitHash != webUiVersion) {
alert("The Version of the Web Interface does not match the Firmware Version!");
if (fWGitHash != webUiHash) {
alert("The Version of the Web Interface does not match the Firmware Version! It is suggested to keep them on the same version!");
}
}