Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/7151

Vanessaa7e862264abd
diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts
index 1a0046d990..2c5aa6e250 100644
--- a/app/src/mobile/util/initFramework.ts
+++ b/app/src/mobile/util/initFramework.ts
@@ -138,9 +138,11 @@ export const initFramework = () => {
});
if (getOpenNotebookCount() > 0) {
if (window.JSAndroid) {
- if (window.openFileByURL(window.JSAndroid.getBlockURL())) {
- return;
+ if (window.openFileByURL(window.JSAndroid.getBlockURL())) {
+ return;
}
+ } else if (window.webkit?.messageHandlers) {
+ window.webkit.messageHandlers.getBlockURL.postMessage()
}
const openId = getSearch("id");
if (openId) {