Skip to content

Commit

Permalink
useRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Mar 5, 2024
1 parent 96f3152 commit 863c73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ const Home: NextPage = () => {
setLoaded(true);
}, []);

const router = useRouter();
/*const router = useRouter();
useEffect(() => {
if (window.location.protocol === 'https:') {
window.location.href = `http://${window.location.host}${router.asPath}`;
}
}, []);
}, []);*/

if (!loaded) return;

Expand Down

0 comments on commit 863c73a

Please sign in to comment.