browser: fix disposition value for new-window event
This commit is contained in:
parent
7353fb4296
commit
7016fbe258
4 changed files with 10 additions and 7 deletions
|
@ -21,14 +21,14 @@ BrowserWindow.prototype._init = function () {
|
|||
}
|
||||
|
||||
// Make new windows requested by links behave like "window.open"
|
||||
this.webContents.on('-new-window', (event, url, frameName) => {
|
||||
this.webContents.on('-new-window', (event, url, frameName, disposition) => {
|
||||
var options
|
||||
options = {
|
||||
show: true,
|
||||
width: 800,
|
||||
height: 600
|
||||
}
|
||||
return ipcMain.emit('ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_OPEN', event, url, frameName, options)
|
||||
return ipcMain.emit('ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_OPEN', event, url, frameName, disposition, options)
|
||||
})
|
||||
|
||||
// window.resizeTo(...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue