mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: Remove mobile redirect script from homepage for cleaner code
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user