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/12087

Vanessae461185bbb1f
diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.ts
index 75042ff757..79a500206b 100644
--- a/app/src/layout/topBar.ts
+++ b/app/src/layout/topBar.ts
@@ -95,7 +95,7 @@ export const initBar = (app: App) => {
}
}
};
- if (!useElement) {
+ if (!useElement && hideElement.querySelector("svg")) {
const svgElement = hideElement.querySelector("svg").cloneNode(true) as HTMLElement;
svgElement.classList.add("b3-menu__icon");
menuOptions.iconHTML = svgElement.outerHTML;