♻️ Electron new-window 事件替换

This commit is contained in:
Liang Ding 2022-11-25 10:01:52 +08:00
parent 223677e462
commit b251d18f8a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -786,7 +786,7 @@ app.on('web-contents-created', (webContentsCreatedEvent, contents) => {
contents.setWindowOpenHandler((details) => {
shell.openExternal(details.url)
return {action: 'deny',}
return {action: 'deny'}
})
})