From bc5fbd4642171880b2638878ca952455bdc105f3 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 8 Feb 2024 15:18:23 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10341 --- app/src/util/assets.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/util/assets.ts b/app/src/util/assets.ts index c4cd37ef9..bc68b42fa 100644 --- a/app/src/util/assets.ts +++ b/app/src/util/assets.ts @@ -87,10 +87,8 @@ export const loadAssets = (data: IAppearance) => { if (themeScriptElement) { // https://github.com/siyuan-note/siyuan/issues/10341 themeScriptElement.remove(); - addScript(themeScriptAddress, "themeScript"); - } else { - addScript(themeScriptAddress, "themeScript"); } + addScript(themeScriptAddress, "themeScript"); const iconDefaultScriptElement = document.getElementById("iconDefaultScript"); // 不能使用 data.iconVer,因为其他主题也需要加载默认图标,此时 data.iconVer 为其他图标的版本号