mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-15 11:38:06 +01:00
This commit is contained in:
parent
e922c402c8
commit
1f607cf08a
9 changed files with 15 additions and 294 deletions
|
|
@ -9,7 +9,7 @@ import {fetchPost} from "./fetch";
|
|||
import {appearance} from "../config/appearance";
|
||||
import {isInAndroid, isInIOS} from "../protyle/util/compatibility";
|
||||
|
||||
const loadThirdIcon = (iconURL: string, data: IAppearance) => {
|
||||
const loadThirdIcon = (iconURL: string, data: Config.IAppearance) => {
|
||||
addScript(iconURL, "iconDefaultScript").then(() => {
|
||||
if (!["ant", "material"].includes(data.icon)) {
|
||||
const iconScriptElement = document.getElementById("iconScript");
|
||||
|
|
@ -21,7 +21,7 @@ const loadThirdIcon = (iconURL: string, data: IAppearance) => {
|
|||
});
|
||||
};
|
||||
|
||||
export const loadAssets = (data: IAppearance) => {
|
||||
export const loadAssets = (data: Config.IAppearance) => {
|
||||
const htmlElement = document.getElementsByTagName("html")[0];
|
||||
htmlElement.setAttribute("lang", window.siyuan.config.appearance.lang);
|
||||
htmlElement.setAttribute("data-theme-mode", getThemeMode());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue