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

This commit is contained in:
Lin Onetwo 2022-12-19 22:36:18 +08:00 committed by DarkSky
parent 0240feb7f1
commit 3c582b03d7
2 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,7 @@ const minimumChromeVersion = 102;
export const shouldShowWarning = () => { export const shouldShowWarning = () => {
return ( return (
!window.CLIENT_APP &&
!getIsMobile() && !getIsMobile() &&
(!getIsChrome() || getChromeVersion() < minimumChromeVersion) (!getIsChrome() || getChromeVersion() < minimumChromeVersion)
); );

View File

@ -121,3 +121,9 @@ export interface AffineThemeCSSVariables {
declare module '@emotion/react' { declare module '@emotion/react' {
export interface Theme extends AffineTheme {} export interface Theme extends AffineTheme {}
} }
declare global {
interface Window {
CLIENT_APP?: boolean;
}
}