mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
♻️ 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) => {
|
contents.setWindowOpenHandler((details) => {
|
||||||
shell.openExternal(details.url)
|
shell.openExternal(details.url)
|
||||||
return {action: 'deny',}
|
return {action: 'deny'}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue