1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-20 09:41:35 +02:00

fix loginRedirect

This commit is contained in:
Madeline 2022-09-28 17:09:10 +10:00
parent 02913b5e24
commit a0a3168d20

View File

@ -5,7 +5,7 @@ const redirectIfOnLogin = () => {
const path = window.location.pathname; const path = window.location.pathname;
if (path == "/login" || path == "/register" || !localStorage.getItem("token")) { if (path == "/login" || path == "/register" || !localStorage.getItem("token")) {
window.location.pathname = "/login"; window.location.pathname = "/login";
window.location.reload(); //window.location.reload();
} }
}; };