diff --git a/src/core/index.tsx b/src/core/index.tsx index dc1f2397..b6392828 100644 --- a/src/core/index.tsx +++ b/src/core/index.tsx @@ -1,5 +1,5 @@ import Head from 'next/head'; -import React, { FC, useEffect } from 'react'; +import React, { FC } from 'react'; import Footer from './components/Footer/index'; import Header from './components/Header/index'; @@ -9,15 +9,15 @@ import { AuthenticationProvider } from 'authentication/providers/AuthenticationP import { SilentRenew } from 'authentication/components/SilentRenew'; const Core: FC = ({ children }) => { - useEffect(() => { - const splash = sessionStorage.getItem('splash'); - const isLandingPage = window.location.pathname === '/'; - const shouldRedirect = !splash || new Date().getTime() - new Date(splash).getTime() > 1000 * 60 * 10; - if (shouldRedirect && isLandingPage) { - sessionStorage.setItem('splash', `${new Date()}`); - window.location.assign('https://splash.online.ntnu.no'); - } - }, []); + // useEffect(() => { + // const splash = sessionStorage.getItem('splash'); + // const isLandingPage = window.location.pathname === '/'; + // const shouldRedirect = !splash || new Date().getTime() - new Date(splash).getTime() > 1000 * 60 * 10; + // if (shouldRedirect && isLandingPage) { + // sessionStorage.setItem('splash', `${new Date()}`); + // window.location.assign('https://splash.online.ntnu.no'); + // } + // }, []); return ( <>