7 lines
277 B
JavaScript
7 lines
277 B
JavaScript
|
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'))
|
||
|
})
|