@@ -70,13 +70,13 @@ function createDefaultWindow() {
70
70
autoUpdater . on ( 'checking-for-update' , ( ) => {
71
71
sendStatusToWindow ( 'Checking for update...' ) ;
72
72
} )
73
- autoUpdater . on ( 'update-available' , ( ev , info ) => {
73
+ autoUpdater . on ( 'update-available' , ( info ) => {
74
74
sendStatusToWindow ( 'Update available.' ) ;
75
75
} )
76
- autoUpdater . on ( 'update-not-available' , ( ev , info ) => {
76
+ autoUpdater . on ( 'update-not-available' , ( info ) => {
77
77
sendStatusToWindow ( 'Update not available.' ) ;
78
78
} )
79
- autoUpdater . on ( 'error' , ( ev , err ) => {
79
+ autoUpdater . on ( 'error' , ( err ) => {
80
80
sendStatusToWindow ( 'Error in auto-updater.' ) ;
81
81
} )
82
82
autoUpdater . on ( 'download-progress' , ( progressObj ) => {
@@ -85,7 +85,7 @@ autoUpdater.on('download-progress', (progressObj) => {
85
85
log_message = log_message + ' (' + progressObj . transferred + "/" + progressObj . total + ')' ;
86
86
sendStatusToWindow ( log_message ) ;
87
87
} )
88
- autoUpdater . on ( 'update-downloaded' , ( ev , info ) => {
88
+ autoUpdater . on ( 'update-downloaded' , ( info ) => {
89
89
sendStatusToWindow ( 'Update downloaded; will install in 5 seconds' ) ;
90
90
} ) ;
91
91
app . on ( 'ready' , function ( ) {
@@ -112,15 +112,15 @@ app.on('window-all-closed', () => {
112
112
//-------------------------------------------------------------------
113
113
// autoUpdater.on('checking-for-update', () => {
114
114
// })
115
- // autoUpdater.on('update-available', (ev, info) => {
115
+ // autoUpdater.on('update-available', (info) => {
116
116
// })
117
- // autoUpdater.on('update-not-available', (ev, info) => {
117
+ // autoUpdater.on('update-not-available', (info) => {
118
118
// })
119
- // autoUpdater.on('error', (ev, err) => {
119
+ // autoUpdater.on('error', (err) => {
120
120
// })
121
- // autoUpdater.on('download-progress', (ev, progressObj) => {
121
+ // autoUpdater.on('download-progress', (progressObj) => {
122
122
// })
123
- autoUpdater . on ( 'update-downloaded' , ( ev , info ) => {
123
+ autoUpdater . on ( 'update-downloaded' , ( info ) => {
124
124
// Wait 5 seconds, then quit and install
125
125
// In your application, you don't need to wait 5 seconds.
126
126
// You could call autoUpdater.quitAndInstall(); immediately
0 commit comments