Remove returns from event listeners

This commit is contained in:
Kevin Sawicki 2016-05-19 15:28:08 -07:00
parent a2b6731bf2
commit cc7395eea8
15 changed files with 34 additions and 36 deletions

View file

@ -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))
})
}