refactor: Remove mobile redirect script from homepage for cleaner code

This commit is contained in:
Simon Larsen
2025-08-19 22:23:20 +01:00
parent e09634dc6f
commit 6dbd838ca4

View File

@@ -117,15 +117,6 @@
});
}
// Mobile redirect helper - if JS is available and we detect mobile, redirect to dashboard
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile Safari|Mobile/i.test(navigator.userAgent)) {
// Small delay to avoid redirect loops and let server handle first
setTimeout(() => {
if (window.location.pathname === '/' && !window.location.search.includes('no-mobile-redirect')) {
window.location.href = '/dashboard';
}
}, 100);
}
</script>
</body>