From 559ad1b0dceeb2118d797487cbe8a3c3cff327cb Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 21 Oct 2022 19:44:58 +0800 Subject: [PATCH] :rotating_light: --- app/src/util/assets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/assets.ts b/app/src/util/assets.ts index 955a4f4e2..56319d4ad 100644 --- a/app/src/util/assets.ts +++ b/app/src/util/assets.ts @@ -72,7 +72,7 @@ export const loadAssets = (data: IAppearance) => { const iconURL = `/appearance/icons/${["ant", "material"].includes(data.icon) ? data.icon : "material"}/icon.js?v=${Constants.SIYUAN_VERSION}`; if (iconDefaultScriptElement) { iconDefaultScriptElement.remove(); - let svgElement = document.body.firstElementChild + let svgElement = document.body.firstElementChild; while (svgElement.tagName === "svg") { const currentSvgElement = svgElement; svgElement = svgElement.nextElementSibling;