Skip to content

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

:lipstick: https://github.com/siyuan-note/siyuan/issues/18121

Vanessa0122e4958b52
diff --git a/app/src/window/onWindowsMsg.ts b/app/src/window/onWindowsMsg.ts
index 91870ff706..c08a67f919 100644
--- a/app/src/window/onWindowsMsg.ts
+++ b/app/src/window/onWindowsMsg.ts
@@ -1,6 +1,5 @@
import {getInstanceById} from "../layout/util";
import {Tab} from "../layout/Tab";
-import {isWindow} from "../util/functions";
import {lockScreen} from "../dialog/processSystem";
import {App} from "../index";
@@ -24,7 +23,7 @@ export const onWindowsMsg = (ipcData: IWebSocketData, app: App) => {
document.querySelectorAll(".layout-tab-bar li[data-clone='true']").forEach(tabItem => {
tabItem.remove();
});
- } else if (isWindow()) {
+ } else {
document.querySelectorAll(".layout-tab-bar--readonly .fn__flex-1").forEach((item: HTMLElement) => {
if (item.getBoundingClientRect().top <= 0) {
if (ipcData.data === "addRegionStyle") {