diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.ts index 75042ff757d..79a500206b0 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;