From 906d51b454631e391dee29463d2c6d200de915ef Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Thu, 27 Oct 2022 21:52:23 +1100 Subject: Try to fix loginRedirect --- assets/preload-plugins/loginRedirect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/preload-plugins/loginRedirect.js b/assets/preload-plugins/loginRedirect.js index 0b5e443a..7b5db578 100644 --- a/assets/preload-plugins/loginRedirect.js +++ b/assets/preload-plugins/loginRedirect.js @@ -1,7 +1,7 @@ if (window.location.hostname !== "127.0.0.1" && window.location.hostname !== "localhost") { const redirectIfOnLogin = () => { const path = window.location.pathname; - if (path == "/login" || path == "/register" || !window.localStorage.getItem("token")) { + if (path == "/login" || path == "/register" /* || !window.localStorage.getItem("token") */) { window.location.pathname = "/login"; //window.location.reload(); } -- cgit 1.4.1