From 706028bc57230f51add0467125154afb941d7077 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Wed, 4 Sep 2019 15:16:13 +0800 Subject: [PATCH] isMobile --- public/react/src/common/Env.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/react/src/common/Env.js b/public/react/src/common/Env.js index 2d226ab22..283e82c48 100644 --- a/public/react/src/common/Env.js +++ b/public/react/src/common/Env.js @@ -2,5 +2,5 @@ export function isDev() { return window.location.port === "3007"; } -const isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())); -export const isMobile \ No newline at end of file +// const isMobile +export const isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())); \ No newline at end of file