Remove returns from event listeners
This commit is contained in:
parent
a2b6731bf2
commit
cc7395eea8
15 changed files with 34 additions and 36 deletions
|
@ -45,7 +45,7 @@ if (process.platform === 'darwin') {
|
|||
const events = ['login', 'certificate-error', 'select-client-certificate']
|
||||
for (let name of events) {
|
||||
app.on(name, (event, webContents, ...args) => {
|
||||
return webContents.emit.apply(webContents, [name, event].concat(args))
|
||||
webContents.emit.apply(webContents, [name, event].concat(args))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue