Vanessa 2024-02-08 15:18:23 +08:00
parent ab3c2ce729
commit bc5fbd4642

View file

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