فهرست منبع

:bug: fix https://github.com/siyuan-note/siyuan/issues/6818

Vanessa 2 سال پیش
والد
کامیت
e3600ee253
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/src/config/appearance.ts

+ 2 - 2
app/src/config/appearance.ts

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