Skip to content

Commit

Permalink
hotfix: don't redirect to splash page
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikskog authored Aug 26, 2024
1 parent c8e42b5 commit 20d9758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Core: FC = ({ children }) => {
useEffect(() => {
const splash = localStorage.getItem('splash');
const isLandingPage = window.location.pathname === '/';
const shouldRedirect = !splash || new Date().getTime() - new Date(splash).getTime() > 1000 * 60 * 10;
const shouldRedirect = false;
if (shouldRedirect && isLandingPage) {
localStorage.setItem('splash', `${new Date()}`);
router.push('https://splash.online.ntnu.no');
Expand Down

0 comments on commit 20d9758

Please sign in to comment.