🎨 iframe 使用短网址会打开浏览器或跳转 APP Fix https://github.com/siyuan-note/siyuan/issues/6327

This commit is contained in:
Liang Ding 2022-10-24 12:17:54 +08:00
parent d8553c6e2a
commit c9882b29d4
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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()
})