chore: remove deprecated 'new-window' event (#34526)

This commit is contained in:
Milan Burda
2022-08-09 23:57:05 +02:00
committed by GitHub
parent 32fefb1f50
commit 8646bf8d30
14 changed files with 36 additions and 681 deletions

View File

@@ -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'
})