From 7e57aa94bc4bf1604ecf7067a924df9aff6182e5 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Thu, 7 Jul 2016 00:20:07 -0700 Subject: [PATCH] auto-updater: emit both release name and notes --- auto-updater.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto-updater.js b/auto-updater.js index 9d220635..8fb55766 100644 --- a/auto-updater.js +++ b/auto-updater.js @@ -14,8 +14,8 @@ module.exports = function AutoUpdater (rpc) { autoUpdater.setFeedURL(`${FEED_URL}/${version}`); - autoUpdater.once('update-downloaded', () => { - rpc.emit('update-available'); + autoUpdater.once('update-downloaded', (ev, releaseNotes, releaseName) => { + rpc.emit('update available', { releaseNotes, releaseName }); }); rpc.once('quit-and-install', () => {