mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
chore: remove deprecated 'new-window' event (#34526)
This commit is contained in:
@@ -174,11 +174,6 @@ webview.addEventListener('found-in-page', function (e) {
|
||||
|
||||
const requestId = webview.findInPage('test')
|
||||
|
||||
webview.addEventListener('new-window', async e => {
|
||||
const { shell } = require('electron')
|
||||
await shell.openExternal(e.url)
|
||||
})
|
||||
|
||||
webview.addEventListener('close', function () {
|
||||
webview.src = 'about:blank'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user