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

This commit is contained in:
Lin Onetwo authored and DarkSky committed 2022-12-22 11:11:35 +08:00
1 parent 0240feb7f1
commit 3c582b03d7
2 files changed
+7

No files matched your search

@@ -13,6 +13,7 @@ const minimumChromeVersion = 102;
export const shouldShowWarning = () => {
return (
!window.CLIENT_APP &&
!getIsMobile() &&
(!getIsChrome() || getChromeVersion() < minimumChromeVersion)
);
+6
View File
@@ -121,3 +121,9 @@ export interface AffineThemeCSSVariables {
declare module '@emotion/react' {
export interface Theme extends AffineTheme {}
}
declare global {
interface Window {
CLIENT_APP?: boolean;
}
}