Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/12584

Vanessaa28f0e7b5c9a
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts
index 49b1741a51..bcd7fffcae 100644
--- a/app/src/protyle/util/compatibility.ts
+++ b/app/src/protyle/util/compatibility.ts
@@ -7,11 +7,15 @@ export const openByMobile = (uri: string) => {
return;
}
if (window.siyuan.config.system.container === "ios") {
- try {
- new URL(uri);
+ if (uri.startsWith("assets/")) {
window.location.href = uri;
- } catch (e) {
- window.location.href = "https://" + uri;
+ } else {
+ try {
+ new URL(uri);
+ window.location.href = uri;
+ } catch (e) {
+ window.location.href = "https://" + uri;
+ }
}
} else if (isInAndroid()) {
window.JSAndroid.openExternal(uri);
@@ -292,7 +296,7 @@ export const getLocalStorage = (cb: () => void) => {
});
};
-export const setStorageVal = (key: string, val: any, cb?:()=>void) => {
+export const setStorageVal = (key: string, val: any, cb?: () => void) => {
if (window.siyuan.config.readonly) {
return;
}