feat: improve mobile support

This commit is contained in:
josc146
2023-03-16 20:26:11 +08:00
parent 7347dff40c
commit e17c810a93
3 changed files with 43 additions and 2 deletions
+1
View File
@@ -1,6 +1,7 @@
// https://stackoverflow.com/questions/11381673/detecting-a-mobile-browser
export async function isMobile() {
if (navigator.userAgentData) return navigator.userAgentData.mobile
let check = false
;(function (a) {
if (