Skip to content

Commit d8c5ddb

Browse files
committed
Correct event handler signatures
1 parent fca7447 commit d8c5ddb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

main.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ function createDefaultWindow() {
7070
autoUpdater.on('checking-for-update', () => {
7171
sendStatusToWindow('Checking for update...');
7272
})
73-
autoUpdater.on('update-available', (ev, info) => {
73+
autoUpdater.on('update-available', (info) => {
7474
sendStatusToWindow('Update available.');
7575
})
76-
autoUpdater.on('update-not-available', (ev, info) => {
76+
autoUpdater.on('update-not-available', (info) => {
7777
sendStatusToWindow('Update not available.');
7878
})
79-
autoUpdater.on('error', (ev, err) => {
79+
autoUpdater.on('error', (err) => {
8080
sendStatusToWindow('Error in auto-updater.');
8181
})
8282
autoUpdater.on('download-progress', (progressObj) => {
@@ -85,7 +85,7 @@ autoUpdater.on('download-progress', (progressObj) => {
8585
log_message = log_message + ' (' + progressObj.transferred + "/" + progressObj.total + ')';
8686
sendStatusToWindow(log_message);
8787
})
88-
autoUpdater.on('update-downloaded', (ev, info) => {
88+
autoUpdater.on('update-downloaded', (info) => {
8989
sendStatusToWindow('Update downloaded; will install in 5 seconds');
9090
});
9191
app.on('ready', function() {
@@ -112,15 +112,15 @@ app.on('window-all-closed', () => {
112112
//-------------------------------------------------------------------
113113
// autoUpdater.on('checking-for-update', () => {
114114
// })
115-
// autoUpdater.on('update-available', (ev, info) => {
115+
// autoUpdater.on('update-available', (info) => {
116116
// })
117-
// autoUpdater.on('update-not-available', (ev, info) => {
117+
// autoUpdater.on('update-not-available', (info) => {
118118
// })
119-
// autoUpdater.on('error', (ev, err) => {
119+
// autoUpdater.on('error', (err) => {
120120
// })
121-
// autoUpdater.on('download-progress', (ev, progressObj) => {
121+
// autoUpdater.on('download-progress', (progressObj) => {
122122
// })
123-
autoUpdater.on('update-downloaded', (ev, info) => {
123+
autoUpdater.on('update-downloaded', (info) => {
124124
// Wait 5 seconds, then quit and install
125125
// In your application, you don't need to wait 5 seconds.
126126
// You could call autoUpdater.quitAndInstall(); immediately

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "electron-updater-example",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"main": "main.js",
55
"description": "electron-updater example project",
66
"author": "Matt Haggard",

0 commit comments

Comments
 (0)