This commit is contained in:
Vanessa 2022-12-08 17:24:03 +08:00
parent 8e654a575c
commit e3600ee253

View File

@ -189,7 +189,7 @@ export const appearance = {
hideStatusBar: (appearance.element.querySelector("#hideStatusBar") as HTMLInputElement).checked, hideStatusBar: (appearance.element.querySelector("#hideStatusBar") as HTMLInputElement).checked,
}, response => { }, response => {
if (( if ((
window.siyuan.config.appearance.themeJS && !response.data.modeOS && window.siyuan.config.appearance.themeJS &&
( (
response.data.mode !== window.siyuan.config.appearance.mode || response.data.mode !== window.siyuan.config.appearance.mode ||
window.siyuan.config.appearance.themeLight !== response.data.themeLight || window.siyuan.config.appearance.themeLight !== response.data.themeLight ||
@ -217,7 +217,7 @@ export const appearance = {
openColorPicker(); openColorPicker();
}); });
appearance.element.querySelector("#resetLayout").addEventListener("click", () => { appearance.element.querySelector("#resetLayout").addEventListener("click", () => {
resetLayout(); resetLayout();
}); });
/// #if !BROWSER /// #if !BROWSER
appearance.element.querySelector("#appearanceOpenIcon").addEventListener("click", () => { appearance.element.querySelector("#appearanceOpenIcon").addEventListener("click", () => {