mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use internal open event name with fully parsed options
This commit is contained in:
@@ -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(...)
|
||||
|
||||
Reference in New Issue
Block a user