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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
139 B
JavaScript
Raw Normal View History

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