Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Liang Dingc9882b29d474
diff --git a/app/electron/main.js b/app/electron/main.js
index c405f6df4a..726b46ac67 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -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()
})