diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-27 21:52:23 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-27 21:52:23 +1100 |
commit | 153a69bd368df35eea713511c59266761a463e61 (patch) | |
tree | a98829269f74231fb18631ca97e944c311b98102 | |
parent | Added scripts for changelogs and removed premium references (diff) | |
download | server-153a69bd368df35eea713511c59266761a463e61.tar.xz |
Try to fix loginRedirect
-rw-r--r-- | assets/preload-plugins/loginRedirect.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |