Преглед на файлове

fix: #1982 should not fullscreen on standlone build

Yidadaa преди 1 година
родител
ревизия
47c546fafa
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app/store/config.ts

+ 2 - 2
app/store/config.ts

@@ -1,7 +1,7 @@
 import { create } from "zustand";
 import { persist } from "zustand/middleware";
+import { getClientConfig } from "../config/client";
 import { StoreKey } from "../constant";
-import { getBuildConfig } from "../config/build";
 
 export enum SubmitKey {
   Enter = "Enter",
@@ -22,7 +22,7 @@ export const DEFAULT_CONFIG = {
   avatar: "1f603",
   fontSize: 14,
   theme: Theme.Auto as Theme,
-  tightBorder: !getBuildConfig().isApp,
+  tightBorder: !!getClientConfig()?.isApp,
   sendPreviewBubble: true,
   sidebarWidth: 300,