mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
♻️ Electron new-window 事件替换
This commit is contained in:
@@ -786,7 +786,7 @@ app.on('web-contents-created', (webContentsCreatedEvent, contents) => {
|
||||
|
||||
contents.setWindowOpenHandler((details) => {
|
||||
shell.openExternal(details.url)
|
||||
return {action: 'deny',}
|
||||
return {action: 'deny'}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user