about summary refs log tree commit diff
path: root/src/platform/detection.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/detection.ts')
-rw-r--r--src/platform/detection.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform/detection.ts b/src/platform/detection.ts
index 5d2ffcb22..da33fdca7 100644
--- a/src/platform/detection.ts
+++ b/src/platform/detection.ts
@@ -4,8 +4,9 @@ export const isIOS = Platform.OS === 'ios'
 export const isAndroid = Platform.OS === 'android'
 export const isNative = isIOS || isAndroid
 export const isWeb = !isNative
+export const isMobileWebMediaQuery = 'only screen and (max-width: 1230px)'
 export const isMobileWeb =
   isWeb &&
   // @ts-ignore we know window exists -prf
-  global.window.matchMedia('only screen and (max-width: 1000px)')?.matches
+  global.window.matchMedia(isMobileWebMediaQuery)?.matches
 export const isDesktopWeb = isWeb && !isMobileWeb