Browse Source

Feat UI/UX Page [Settings]

- [+] feat(settings.tsx): set useCustomConfig to true if clientConfig.isApp is truthy
H0llyW00dzZ 1 year ago
parent
commit
bf5e7aaa48
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/components/settings.tsx

+ 5 - 0
app/components/settings.tsx

@@ -635,6 +635,11 @@ export function Settings() {
         navigate(Path.Home);
         navigate(Path.Home);
       }
       }
     };
     };
+    if (clientConfig?.isApp) { // Force to set custom endpoint to true if it's app
+      accessStore.update((state) => {
+        state.useCustomConfig = true;
+      });
+    }
     document.addEventListener("keydown", keydownEvent);
     document.addEventListener("keydown", keydownEvent);
     return () => {
     return () => {
       document.removeEventListener("keydown", keydownEvent);
       document.removeEventListener("keydown", keydownEvent);