From 47c546fafa313549cf3885c1f6a4170ad6d5192d Mon Sep 17 00:00:00 2001 From: Yidadaa Date: Thu, 15 Jun 2023 22:34:50 +0800 Subject: [PATCH] fix: #1982 should not fullscreen on standlone build --- app/store/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/store/config.ts b/app/store/config.ts index 6858fc5ec..e4544d993 100644 --- a/app/store/config.ts +++ b/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,