From d28df4b22a6e5dd17f5591cef2e6eeb672ba57b1 Mon Sep 17 00:00:00 2001 From: Immortal Date: Tue, 5 Mar 2024 20:37:13 +0330 Subject: [PATCH] undo --- src/pages/index.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index a22f7a9..c89e2ed 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -16,7 +16,6 @@ import { allIps } from "~/consts"; import { useUserIPInfo } from "~/hooks/useUserIPInfo"; import { toast } from "react-hot-toast"; import { useEffect, useState } from "react"; -import { useRouter } from 'next/router'; const UserIP = dynamic(() => import("~/components/UserIP"), { ssr: false }); const Home: NextPage = () => { @@ -52,13 +51,6 @@ const Home: NextPage = () => { setLoaded(true); }, []); - const router = useRouter(); - useEffect(() => { - if (window.location.protocol === 'https:') { - window.location.href = `http://${window.location.host}${router.asPath}`; - } - }, []); - if (!loaded) return; return (