Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/10341

Vanessabc5fbd464217
diff --git a/app/src/util/assets.ts b/app/src/util/assets.ts
index c4cd37ef95..bc68b42fad 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 为其他图标的版本号