diff --git a/packages/app/src/components/Header/utils.tsx b/packages/app/src/components/Header/utils.tsx index b93cacef93..dd9ff50127 100644 --- a/packages/app/src/components/Header/utils.tsx +++ b/packages/app/src/components/Header/utils.tsx @@ -13,6 +13,7 @@ const minimumChromeVersion = 102; export const shouldShowWarning = () => { return ( + !window.CLIENT_APP && !getIsMobile() && (!getIsChrome() || getChromeVersion() < minimumChromeVersion) ); diff --git a/packages/app/src/styles/types.ts b/packages/app/src/styles/types.ts index 155842eebc..e5a2c3ecd5 100644 --- a/packages/app/src/styles/types.ts +++ b/packages/app/src/styles/types.ts @@ -121,3 +121,9 @@ export interface AffineThemeCSSVariables { declare module '@emotion/react' { export interface Theme extends AffineTheme {} } + +declare global { + interface Window { + CLIENT_APP?: boolean; + } +}