Skip to content

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

:green_heart:

Vanessa305f8b7a231b
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 78c2922873..3105510e4b 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -28,8 +28,10 @@ import {pdfResize} from "../asset/renderAssets";
import {Backlink} from "./dock/Backlink";
import {openFileById} from "../editor/util";
import {getSearch, isWindow, isSiyuanUrl, isWebSiyuanUrl, getIdFromSiyuanUrl, getIdFromWebSiyuanUrl} from "../util/functions";
-import {showMessage} from "../dialog/message";
+/// #if !BROWSER
import {setTabPosition} from "../window/setHeader";
+/// #endif
+import {showMessage} from "../dialog/message";
export const setPanelFocus = (element: Element) => {
if (element.classList.contains("layout__tab--active") || element.classList.contains("layout__wnd--active")) {
@@ -125,7 +127,9 @@ export const switchWnd = (newWnd: Wnd, targetWnd: Wnd) => {
return true;
}
});
+ /// #if !BROWSER
setTabPosition();
+ /// #endif
};
export const getWndByLayout: (layout: Layout) => Wnd = (layout: Layout) => {