diff --git a/js/misc/loginManager.js b/js/misc/loginManager.js index 62357eafb..4b0fd0622 100644 --- a/js/misc/loginManager.js +++ b/js/misc/loginManager.js @@ -72,8 +72,10 @@ function versionCompare(required, reference) { reference = reference.split('.'); for (let i = 0; i < required.length; i++) { - if (required[i] != reference[i]) - return required[i] < reference[i]; + let requiredInt = parseInt(required[i]); + let referenceInt = parseInt(reference[i]); + if (requiredInt != referenceInt) + return requiredInt < referenceInt; } return true;