1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Update boot.js

if major, minor and patch are equal, the incoming wins.
This commit is contained in:
Felix Küppers 2014-12-23 19:21:54 +01:00
parent d33b525067
commit 70cbb5efc5

View File

@ -375,8 +375,7 @@ $tw.utils.checkVersions = function(versionStringA,versionStringB) {
]; ];
return (diff[0] > 0) || return (diff[0] > 0) ||
(diff[0] === 0 && diff[1] > 0) || (diff[0] === 0 && diff[1] > 0) ||
(diff[0] === 0 && diff[1] === 0 && diff[2] > 0) || (diff[0] === 0 && diff[1] === 0 && diff[2] > 0);
(diff[0] === 0 && diff[1] === 0 && diff[2] === 0 && !versionB.prerelease);
}; };
/* /*