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/5066 getFrontend

Vanessade7c9e5c5057
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts
index 4abe6deba6..584cc1efd9 100644
--- a/app/src/plugin/API.ts
+++ b/app/src/plugin/API.ts
@@ -4,7 +4,7 @@ import {showMessage} from "../dialog/message";
import {Dialog} from "../dialog";
import {Menu as SiyuanMenu} from "../menus/Menu";
import {fetchGet, fetchPost, fetchSyncPost} from "../util/fetch";
-import {isMobile} from "../util/functions";
+import {getFrontend} from "../util/functions";
/// #if !MOBILE
import {openFile, openFileById} from "../editor/util";
/// #endif
@@ -204,7 +204,7 @@ export const API = {
fetchPost,
fetchSyncPost,
fetchGet,
- isMobile,
+ getFrontend,
openTab,
Plugin,
Dialog,