mirror of https://github.com/keeweb/keeweb.git
fix entry point versioning
This commit is contained in:
parent
876148e953
commit
adcfe6a3df
|
@ -1,3 +1,11 @@
|
|||
// KeeWeb launcher script
|
||||
|
||||
// This script is distributed with the app and is its entry point
|
||||
// It checks whether the app is available in userData folder and if its version is higher than local, launches it
|
||||
// This script is the only part which will be updated only with the app itself, auto-update will not change it
|
||||
|
||||
// (C) Antelle 2015, MIT license https://github.com/antelle/keeweb
|
||||
|
||||
'use strict';
|
||||
|
||||
/* jshint node:true */
|
||||
|
@ -20,6 +28,10 @@ if (fs.existsSync(appPathUserData)) {
|
|||
for (var i = 0; i < versionLocal.length; i++) {
|
||||
if (+versionUserData[i] > +versionLocal[i]) {
|
||||
appPath = appPathUserData;
|
||||
break;
|
||||
}
|
||||
if (+versionUserData[i] < +versionLocal[i]) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue