Parse the 4th argument into a date.
authorprobablycorey <cj@github.com>
Mon, 3 Feb 2014 20:39:54 +0000 (12:39 -0800)
committerprobablycorey <cj@github.com>
Mon, 3 Feb 2014 20:39:54 +0000 (12:39 -0800)
browser/api/lib/auto-updater.coffee

index fc29bd3..81c22f1 100644 (file)
@@ -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