fix: expand user-agent check for mobile devices

This commit is contained in:
huangyan321 2023-09-21 17:19:27 +08:00
parent a415527038
commit 80b9b01a16
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {
/**