From: probablycorey Date: Mon, 3 Feb 2014 20:39:54 +0000 (-0800) Subject: Parse the 4th argument into a date. X-Git-Tag: v0.9.1^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e7248b486f1db3b3fb57e2736e7b8089d42e9880;p=electron.git Parse the 4th argument into a date. --- diff --git a/browser/api/lib/auto-updater.coffee b/browser/api/lib/auto-updater.coffee index fc29bd3d..81c22f16 100644 --- a/browser/api/lib/auto-updater.coffee +++ b/browser/api/lib/auto-updater.coffee @@ -5,7 +5,7 @@ AutoUpdater::__proto__ = EventEmitter.prototype autoUpdater = new AutoUpdater autoUpdater.on 'update-downloaded-raw', (args...) -> - args[2] = new Date(args[2]) # releaseDate + args[3] = new Date(args[3]) # releaseDate @emit 'update-downloaded', args..., => @quitAndInstall() module.exports = autoUpdater