Fix JavaScript style
This commit is contained in:
parent
6bbfe89f96
commit
076427673e
1 changed files with 3 additions and 1 deletions
|
@ -243,7 +243,9 @@ ipcMain.on('ELECTRON_GUEST_WINDOW_MANAGER_INTERNAL_WINDOW_OPEN', function (event
|
||||||
additionalFeatures, postData) {
|
additionalFeatures, postData) {
|
||||||
options = mergeBrowserWindowOptions(event.sender, options)
|
options = mergeBrowserWindowOptions(event.sender, options)
|
||||||
const newWindowEvent = {
|
const newWindowEvent = {
|
||||||
preventDefault: () => newWindowEvent.defaultPrevented = true
|
preventDefault: function () {
|
||||||
|
this.defaultPrevented = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
event.sender.emit('new-window', newWindowEvent, url, frameName, disposition, options, additionalFeatures)
|
event.sender.emit('new-window', newWindowEvent, url, frameName, disposition, options, additionalFeatures)
|
||||||
const newGuest = newWindowEvent.newGuest
|
const newGuest = newWindowEvent.newGuest
|
||||||
|
|
Loading…
Reference in a new issue