electron/docs/fiddles/ipc/webview-new-window/renderer.js
Milan Burda 67f273a6d6
docs: add <webview> new-window event removal to breaking-changes.md (#36985)
Co-authored-by: Milan Burda <miburda@microsoft.com>
2023-05-31 10:47:08 -04:00

4 lines
139 B
JavaScript

const webview = document.getElementById('webview')
webview.addEventListener('new-window', () => {
console.log('got new-window event')
})