mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 23:21:47 +01:00
♻️ 升级 Electron https://github.com/siyuan-note/siyuan/issues/6793
This commit is contained in:
parent
95e2ee3aeb
commit
d1995bda5c
6 changed files with 144 additions and 74 deletions
|
|
@ -778,11 +778,6 @@ app.on('activate', () => {
|
|||
|
||||
// 在编辑器内打开链接的处理,比如 iframe 上的打开链接。
|
||||
app.on('web-contents-created', (webContentsCreatedEvent, contents) => {
|
||||
contents.on('new-window', (newWindowEvent, url) => {
|
||||
newWindowEvent.preventDefault()
|
||||
shell.openExternal(url)
|
||||
})
|
||||
|
||||
contents.setWindowOpenHandler((details) => {
|
||||
shell.openExternal(details.url)
|
||||
return {action: 'deny'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue