Use internal open event name with fully parsed options
This commit is contained in:
parent
f3852c57fc
commit
de4be56b09
1 changed files with 3 additions and 2 deletions
|
@ -26,7 +26,7 @@ BrowserWindow.prototype._init = function () {
|
|||
width: 800,
|
||||
height: 600
|
||||
}
|
||||
ipcMain.emit('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_OPEN',
|
||||
ipcMain.emit('ELECTRON_GUEST_WINDOW_MANAGER_INTERNAL_WINDOW_OPEN',
|
||||
event, url, frameName, disposition,
|
||||
options, additionalFeatures, postData)
|
||||
})
|
||||
|
@ -56,7 +56,8 @@ BrowserWindow.prototype._init = function () {
|
|||
height: height || 600,
|
||||
webContents: webContents
|
||||
}
|
||||
ipcMain.emit('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_OPEN', event, url, frameName, disposition, options)
|
||||
ipcMain.emit('ELECTRON_GUEST_WINDOW_MANAGER_INTERNAL_WINDOW_OPEN',
|
||||
event, url, frameName, disposition, options)
|
||||
})
|
||||
|
||||
// window.resizeTo(...)
|
||||
|
|
Loading…
Reference in a new issue