From e461185bbb1f584fb62763bc3970750bd75b4b66 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 20 Oct 2024 12:14:35 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12087 --- app/src/layout/topBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.ts index 75042ff75..79a500206 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;