diff --git a/lib/browser/api/auto-updater/auto-updater-win.js b/lib/browser/api/auto-updater/auto-updater-win.js index 55b8372f52cf..fced12587977 100644 --- a/lib/browser/api/auto-updater/auto-updater-win.js +++ b/lib/browser/api/auto-updater/auto-updater-win.js @@ -29,7 +29,7 @@ class AutoUpdater extends EventEmitter { return this.emitError('Can not find Squirrel') } this.emit('checking-for-update') - squirrelUpdate.download(this.updateURL, (error, update) => { + squirrelUpdate.checkForUpdate(this.updateURL, (error, update) => { if (error != null) { return this.emitError(error) } diff --git a/lib/browser/api/auto-updater/squirrel-update-win.js b/lib/browser/api/auto-updater/squirrel-update-win.js index 4783a9dd9885..60345f1a1abe 100644 --- a/lib/browser/api/auto-updater/squirrel-update-win.js +++ b/lib/browser/api/auto-updater/squirrel-update-win.js @@ -82,8 +82,8 @@ exports.processStart = function () { } // Download the releases specified by the URL and write new results to stdout. -exports.download = function (updateURL, callback) { - return spawnUpdate(['--download', updateURL], false, function (error, stdout) { +exports.checkForUpdate = function (updateURL, callback) { + return spawnUpdate(['--checkForUpdate', updateURL], false, function (error, stdout) { var json, ref, ref1, update if (error != null) { return callback(error)