Skip to content

Commit

Permalink
removed standalone check
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Mar 21, 2024
1 parent 4ac58e3 commit ac7ddf5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/app/components/AuthPage/AuthPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function AuthPage ({children} : {children: React.ReactNode}) {
useEffect(() => {


if (window) {
/* if (window) {
console.log("window is here")
if (window.matchMedia('(display-mode: standalone)').matches) {
console.log('standalone')
Expand All @@ -35,7 +35,18 @@ export default function AuthPage ({children} : {children: React.ReactNode}) {
router.push('/');
}
}
} */



if (authenticated && zeroDevReady) {
// route home
console.log('authenticated');
router.push('/home');
} else {
router.push('/login');
}




Expand Down

0 comments on commit ac7ddf5

Please sign in to comment.