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 为其他图标的版本号