Merge pull request #94 from oney/fix-semver-compare

Fix semver compare when first version
This commit is contained in:
Jonathan Carter
2015-12-06 13:23:36 -08:00

View File

@@ -50,7 +50,7 @@ function checkForUpdate(deploymentKey = null) {
* to send the app version to the server, since we are interested
* in any updates for current app store version, regardless of hash.
*/
if (localPackage && semver.compare(localPackage.appVersion, config.appVersion) === 0) {
if (localPackage && localPackage.appVersion && semver.compare(localPackage.appVersion, config.appVersion) === 0) {
queryPackage = localPackage;
}