Updated required code to handle missing additional features for popup windows

This commit is contained in:
Michael Vasseur 2016-09-15 15:37:35 +02:00 committed by Cheng Zhao
parent ef88a06f08
commit c811188e22
9 changed files with 35 additions and 17 deletions

View file

@ -18,13 +18,13 @@ BrowserWindow.prototype._init = function () {
}
// Make new windows requested by links behave like "window.open"
this.webContents.on('-new-window', (event, url, frameName, disposition) => {
this.webContents.on('-new-window', (event, url, frameName, disposition, additionalFeatures) => {
const options = {
show: true,
width: 800,
height: 600
}
ipcMain.emit('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_OPEN', event, url, frameName, disposition, options)
ipcMain.emit('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_OPEN', event, url, frameName, disposition, options, additionalFeatures)
})
this.webContents.on('-web-contents-created', (event, webContents, url,