Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: is inside a tauri app then don't show warning

Lin Onetwo3c582b03d742
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;
+ }
+}