chore: improve mobile selection

This commit is contained in:
josc146
2023-03-17 10:32:32 +08:00
parent ff78f4980f
commit 644f53f78b
2 changed files with 17 additions and 3 deletions
+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) {