Remove guest from will-attach-webview event

This commit is contained in:
Kevin Sawicki 2017-02-09 11:47:40 -08:00
parent acff2f6baf
commit a7c050107b
4 changed files with 3 additions and 4 deletions

View file

@ -255,7 +255,7 @@ ipcMain.on('prevent-next-will-attach-webview', (event) => {
})
ipcMain.on('disable-node-on-next-will-attach-webview', (event, id) => {
event.sender.once('will-attach-webview', (event, guest, webPreferences, params) => {
event.sender.once('will-attach-webview', (event, webPreferences, params) => {
params.src = `file://${path.join(__dirname, '..', 'fixtures', 'pages', 'c.html')}`
webPreferences.nodeIntegration = false
})