diff --git a/src/updater.js b/src/updater.js index 8a414f83b..e91b566f7 100644 --- a/src/updater.js +++ b/src/updater.js @@ -31,7 +31,7 @@ Updater.prototype.check = function () { debug('check: ', result.body); - if (result.body.available) { + if (result.body.version) { debug('check: update to version ' + result.body.version + ' available.'); that.updateInfo = { version: result.body.version, @@ -76,4 +76,4 @@ Updater.prototype.update = function (callback) { callback(null); }); -}; \ No newline at end of file +};