mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-04 02:50:59 +08:00
fix: 全局格式化
This commit is contained in:
@@ -16,11 +16,19 @@ export const useIsMobile = () => {
|
||||
}
|
||||
|
||||
const mobileKeywords = [
|
||||
'android', 'iphone', 'ipad', 'ipod', 'blackberry', 'windows phone',
|
||||
'mobile', 'tablet', 'opera mini', 'iemobile'
|
||||
'android',
|
||||
'iphone',
|
||||
'ipad',
|
||||
'ipod',
|
||||
'blackberry',
|
||||
'windows phone',
|
||||
'mobile',
|
||||
'tablet',
|
||||
'opera mini',
|
||||
'iemobile',
|
||||
]
|
||||
|
||||
return mobileKeywords.some(keyword => userAgent.includes(keyword))
|
||||
return mobileKeywords.some((keyword) => userAgent.includes(keyword))
|
||||
}
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
@@ -43,4 +51,3 @@ export const useIsMobile = () => {
|
||||
return isMobileUserAgent()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user