diff options
Diffstat (limited to 'src/electron/ipc-api/autoUpdate.js')
-rw-r--r-- | src/electron/ipc-api/autoUpdate.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/electron/ipc-api/autoUpdate.js b/src/electron/ipc-api/autoUpdate.js index 74b718734..9a04c1958 100644 --- a/src/electron/ipc-api/autoUpdate.js +++ b/src/electron/ipc-api/autoUpdate.js | |||
@@ -30,9 +30,12 @@ export default (params) => { | |||
30 | params.mainWindow.webContents.send('autoUpdate', { available: false }); | 30 | params.mainWindow.webContents.send('autoUpdate', { available: false }); |
31 | }); | 31 | }); |
32 | 32 | ||
33 | autoUpdater.on('update-available', () => { | 33 | autoUpdater.on('update-available', (event) => { |
34 | debug('update-available'); | 34 | debug('update-available'); |
35 | params.mainWindow.webContents.send('autoUpdate', { available: true }); | 35 | params.mainWindow.webContents.send('autoUpdate', { |
36 | version: event.version, | ||
37 | available: true, | ||
38 | }); | ||
36 | }); | 39 | }); |
37 | 40 | ||
38 | autoUpdater.on('download-progress', (progressObj) => { | 41 | autoUpdater.on('download-progress', (progressObj) => { |