use an arrow function
This commit is contained in:
parent
35b2bc6b51
commit
2ec223ba11
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => {
|
|||
message: 'A new version has been downloaded. Restart the application to apply the updates.',
|
||||
detail: releaseName + '\n\n' + releaseNotes
|
||||
}
|
||||
dialog.showMessageBox(dialogOpts, function(response) {
|
||||
dialog.showMessageBox(dialogOpts, (response) => {
|
||||
if (response === 0) autoUpdater.quitAndInstall()
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue