mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-26 17:03:46 +03:00
feat: is inside a tauri app then don't show warning
This commit is contained in:
parent
0240feb7f1
commit
3c582b03d7
@ -13,6 +13,7 @@ const minimumChromeVersion = 102;
|
||||
|
||||
export const shouldShowWarning = () => {
|
||||
return (
|
||||
!window.CLIENT_APP &&
|
||||
!getIsMobile() &&
|
||||
(!getIsChrome() || getChromeVersion() < minimumChromeVersion)
|
||||
);
|
||||
|
@ -121,3 +121,9 @@ export interface AffineThemeCSSVariables {
|
||||
declare module '@emotion/react' {
|
||||
export interface Theme extends AffineTheme {}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
CLIENT_APP?: boolean;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user