mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 05:10:16 +01:00
🚨
This commit is contained in:
parent
55371ed04d
commit
2a6aa53660
12 changed files with 37 additions and 41 deletions
|
|
@ -22,7 +22,7 @@ const loadThirdIcon = (iconURL: string, data: IAppearance) => {
|
|||
};
|
||||
|
||||
export const loadAssets = (data: IAppearance) => {
|
||||
const htmlElement = document.getElementsByTagName("html")[0]
|
||||
const htmlElement = document.getElementsByTagName("html")[0];
|
||||
htmlElement.setAttribute("lang",window.siyuan.config.appearance.lang);
|
||||
htmlElement.setAttribute("data-theme-mode",getThemeMode());
|
||||
htmlElement.setAttribute("data-light-theme",window.siyuan.config.appearance.themeLight);
|
||||
|
|
@ -305,4 +305,4 @@ export const getThemeMode = () => {
|
|||
} else {
|
||||
return window.siyuan.config.appearance.mode === 0 ? "light" : "dark";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue