Use internal open event name with fully parsed options

This commit is contained in:
Kevin Sawicki 2017-01-12 12:50:14 -08:00
parent f3852c57fc
commit de4be56b09

View file

@ -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(...)