mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
use an arrow function
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user