electron/docs/fiddles/ipc/webview-new-window/renderer.js

5 lines
139 B
JavaScript

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