From 80b9b01a16d2e0e4fa445d311a766e4fe6fe4f1f Mon Sep 17 00:00:00 2001 From: huangyan321 <1604549268@qq.com> Date: Thu, 21 Sep 2023 17:19:27 +0800 Subject: [PATCH] fix: expand user-agent check for mobile devices --- src/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/utils.js b/src/js/utils.js index 991a2e7..b975126 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -1,4 +1,4 @@ -const isMobile = /mobile/i.test(window.navigator.userAgent); +const isMobile = /mobile|android|iphone|ipod|phone|ipad/i.test(window.navigator.userAgent); const utils = { /**