Remove returns from event listeners

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

View file

@ -28,7 +28,7 @@ ipcMain.on('ELECTRON_BROWSER_DESKTOP_CAPTURER_GET_SOURCES', function (event, cap
// If the WebContents is destroyed before receiving result, just remove the
// reference from requestsQueue to make the module not send the result to it.
return event.sender.once('destroyed', function () {
event.sender.once('destroyed', function () {
request.webContents = null
})
})