Fixed Redirect Loop when already on /mobile

This commit is contained in:
2025-09-25 16:45:25 +02:00
parent dd2bf7a8ff
commit 9afd5c3bf5

View File

@@ -3,7 +3,7 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
console.log(await useCapacitor().getIsPhone()) console.log(await useCapacitor().getIsPhone())
if(await useCapacitor().getIsPhone()) { if(await useCapacitor().getIsPhone() && _from.path !== '/mobile') {
return router.push('/mobile') return router.push('/mobile')
} }
}) })