docs: add <webview>
new-window
event removal to breaking-changes.md (#36985)
Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
parent
b454f8c7c1
commit
67f273a6d6
6 changed files with 101 additions and 0 deletions
6
docs/fiddles/ipc/webview-new-window/preload.js
Normal file
6
docs/fiddles/ipc/webview-new-window/preload.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
const { ipcRenderer } = require('electron')
|
||||
const webview = document.getElementById('webview')
|
||||
ipcRenderer.on('webview-new-window', (e, webContentsId, details) => {
|
||||
console.log('webview-new-window', webContentsId, details)
|
||||
webview.dispatchEvent(new Event('new-window'))
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue