auto-updater: emit both release name and notes

This commit is contained in:
Guillermo Rauch 2016-07-07 00:20:07 -07:00
parent f6b0277438
commit 7e57aa94bc

View file

@ -14,8 +14,8 @@ module.exports = function AutoUpdater (rpc) {
autoUpdater.setFeedURL(`${FEED_URL}/${version}`); autoUpdater.setFeedURL(`${FEED_URL}/${version}`);
autoUpdater.once('update-downloaded', () => { autoUpdater.once('update-downloaded', (ev, releaseNotes, releaseName) => {
rpc.emit('update-available'); rpc.emit('update available', { releaseNotes, releaseName });
}); });
rpc.once('quit-and-install', () => { rpc.once('quit-and-install', () => {