mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-08-14 12:10:31 +08:00
chore: improve mobile selection
This commit is contained in:
@@ -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