mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
1cc838950a
commit
4822fc1bf7
17 changed files with 8 additions and 403 deletions
|
|
@ -112,9 +112,6 @@ class App {
|
|||
progressBackgroundTask(data.data.tasks);
|
||||
break;
|
||||
case "refreshtheme":
|
||||
if (!window.siyuan.config.appearance.customCSS && data.data.theme.indexOf("custom.css") > -1) {
|
||||
return;
|
||||
}
|
||||
if ((window.siyuan.config.appearance.mode === 1 && window.siyuan.config.appearance.themeDark !== "midnight") || (window.siyuan.config.appearance.mode === 0 && window.siyuan.config.appearance.themeLight !== "daylight")) {
|
||||
(document.getElementById("themeStyle") as HTMLLinkElement).href = data.data.theme;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue