mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-10-03 12:20:40 +08:00
chore: improve mobile selection
This commit is contained in:
1 parent
ff78f4980f
commit
644f53f78b
2 files changed
+17
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
// https://stackoverflow.com/questions/11381673/detecting-a-mobile-browser
|
||||
|
||||
export async function isMobile() {
|
||||
export function isMobile() {
|
||||
if (navigator.userAgentData) return navigator.userAgentData.mobile
|
||||
let check = false
|
||||
;(function (a) {
|
||||
|
||||
Reference in new issue
Block a user