mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-25 19:52:36 +01:00
fix loginRedirect
This commit is contained in:
parent
52414c0e7b
commit
d195982677
@ -5,7 +5,7 @@ const redirectIfOnLogin = () => {
|
||||
const path = window.location.pathname;
|
||||
if (path == "/login" || path == "/register" || !localStorage.getItem("token")) {
|
||||
window.location.pathname = "/login";
|
||||
window.location.reload();
|
||||
//window.location.reload();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user