Skip to content

Commit

Permalink
Correct event handler signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
iffy committed Jun 30, 2017
1 parent fca7447 commit d8c5ddb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ function createDefaultWindow() {
autoUpdater.on('checking-for-update', () => {
sendStatusToWindow('Checking for update...');
})
autoUpdater.on('update-available', (ev, info) => {
autoUpdater.on('update-available', (info) => {
sendStatusToWindow('Update available.');
})
autoUpdater.on('update-not-available', (ev, info) => {
autoUpdater.on('update-not-available', (info) => {
sendStatusToWindow('Update not available.');
})
autoUpdater.on('error', (ev, err) => {
autoUpdater.on('error', (err) => {
sendStatusToWindow('Error in auto-updater.');
})
autoUpdater.on('download-progress', (progressObj) => {
Expand All @@ -85,7 +85,7 @@ autoUpdater.on('download-progress', (progressObj) => {
log_message = log_message + ' (' + progressObj.transferred + "/" + progressObj.total + ')';
sendStatusToWindow(log_message);
})
autoUpdater.on('update-downloaded', (ev, info) => {
autoUpdater.on('update-downloaded', (info) => {
sendStatusToWindow('Update downloaded; will install in 5 seconds');
});
app.on('ready', function() {
Expand All @@ -112,15 +112,15 @@ app.on('window-all-closed', () => {
//-------------------------------------------------------------------
// autoUpdater.on('checking-for-update', () => {
// })
// autoUpdater.on('update-available', (ev, info) => {
// autoUpdater.on('update-available', (info) => {
// })
// autoUpdater.on('update-not-available', (ev, info) => {
// autoUpdater.on('update-not-available', (info) => {
// })
// autoUpdater.on('error', (ev, err) => {
// autoUpdater.on('error', (err) => {
// })
// autoUpdater.on('download-progress', (ev, progressObj) => {
// autoUpdater.on('download-progress', (progressObj) => {
// })
autoUpdater.on('update-downloaded', (ev, info) => {
autoUpdater.on('update-downloaded', (info) => {
// Wait 5 seconds, then quit and install
// In your application, you don't need to wait 5 seconds.
// You could call autoUpdater.quitAndInstall(); immediately
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-updater-example",
"version": "0.4.1",
"version": "0.4.2",
"main": "main.js",
"description": "electron-updater example project",
"author": "Matt Haggard",
Expand Down

0 comments on commit d8c5ddb

Please sign in to comment.