added redirectToMobileIndex.ts

This commit is contained in:
2025-04-01 16:17:28 +02:00
parent 621c61c094
commit 9f5409cc70
3 changed files with 29 additions and 23 deletions

View File

@@ -1,6 +1,8 @@
export default defineNuxtRouteMiddleware(async (to, _from) => {
const router = useRouter()
console.log(await useCapacitor().getIsPhone())
if(await useCapacitor().getIsPhone()) {
return router.push('/mobile')
}