mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-27 05:22:22 +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 = () => {
|
export const shouldShowWarning = () => {
|
||||||
return (
|
return (
|
||||||
|
!window.CLIENT_APP &&
|
||||||
!getIsMobile() &&
|
!getIsMobile() &&
|
||||||
(!getIsChrome() || getChromeVersion() < minimumChromeVersion)
|
(!getIsChrome() || getChromeVersion() < minimumChromeVersion)
|
||||||
);
|
);
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user