mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 iframe 使用短网址会打开浏览器或跳转 APP Fix https://github.com/siyuan-note/siyuan/issues/6327
This commit is contained in:
parent
d8553c6e2a
commit
c9882b29d4
1 changed files with 2 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ const boot = () => {
|
|||
if (url.startsWith('http://127.0.0.1:6806')) {
|
||||
return
|
||||
}
|
||||
console.log("will-navigate", url)
|
||||
|
||||
event.preventDefault()
|
||||
shell.openExternal(url)
|
||||
})
|
||||
|
|
@ -340,6 +340,7 @@ const boot = () => {
|
|||
if (url.startsWith('http://127.0.0.1:6806')) {
|
||||
return
|
||||
}
|
||||
|
||||
event.preventDefault()
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue