默认自动识别 Android / iOS 设备
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
export default function isMobileUI() {
|
export default function isMobileUI() {
|
||||||
return new URL(location.href).searchParams.get('mobile') == 'true'
|
return new URL(location.href).searchParams.get('mobile') == 'true' || /Mobi|Android|iPhone/i.test(navigator.userAgent)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user