默认自动识别 Android / iOS 设备

This commit is contained in:
CrescentLeaf
2025-11-21 21:46:21 +08:00
parent b32f60d94d
commit 32719b45ea

View File

@@ -1,3 +1,3 @@
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)
}