Fix JavaScript style

This commit is contained in:
Ryohei Ikegami 2017-03-19 18:20:10 +09:00
parent 6bbfe89f96
commit 076427673e

View file

@ -243,7 +243,9 @@ ipcMain.on('ELECTRON_GUEST_WINDOW_MANAGER_INTERNAL_WINDOW_OPEN', function (event
additionalFeatures, postData) {
options = mergeBrowserWindowOptions(event.sender, options)
const newWindowEvent = {
preventDefault: () => newWindowEvent.defaultPrevented = true
preventDefault: function () {
this.defaultPrevented = true
}
}
event.sender.emit('new-window', newWindowEvent, url, frameName, disposition, options, additionalFeatures)
const newGuest = newWindowEvent.newGuest