TODO: 推翻整个项目重新建立根基
This commit is contained in:
5
client/utils/isMobileUI.ts
Normal file
5
client/utils/isMobileUI.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export default function isMobileUI() {
|
||||
const mobile = new URL(location.href).searchParams.get('mobile')
|
||||
if (mobile) return mobile == 'true'
|
||||
return /Mobi|Android|iPhone/i.test(navigator.userAgent)
|
||||
}
|
||||
Reference in New Issue
Block a user