Adjust src from will-attach-webview
This commit is contained in:
parent
8b0d3a2567
commit
acff2f6baf
2 changed files with 3 additions and 5 deletions
|
@ -255,7 +255,8 @@ 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) => {
|
||||
event.sender.once('will-attach-webview', (event, guest, webPreferences, params) => {
|
||||
params.src = `file://${path.join(__dirname, '..', 'fixtures', 'pages', 'c.html')}`
|
||||
webPreferences.nodeIntegration = false
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue