♻️ Electron new-window 事件替换
This commit is contained in:
parent
223677e462
commit
b251d18f8a
1 changed files with 1 additions and 1 deletions
|
@ -786,7 +786,7 @@ app.on('web-contents-created', (webContentsCreatedEvent, contents) => {
|
|||
|
||||
contents.setWindowOpenHandler((details) => {
|
||||
shell.openExternal(details.url)
|
||||
return {action: 'deny',}
|
||||
return {action: 'deny'}
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue