chore: improve mobile selection

This commit is contained in:
josc146 committed 2023-03-17 10:32:32 +08:00
1 parent ff78f4980f
commit 644f53f78b
2 files changed
+17 -3

No files matched your search

+1 -1
View File
@@ -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) {