dashboard wip
This commit is contained in:
@@ -2,13 +2,15 @@ function checkToken(){
|
||||
|
||||
instance.get("token", { withCredentials: true})
|
||||
.then(function(response) {
|
||||
if(location.href.pathname == "/")
|
||||
if(location.pathname == "/")
|
||||
{
|
||||
location.href="/html/home.html";
|
||||
}
|
||||
})
|
||||
.catch(function(error){
|
||||
location.href="/";
|
||||
if(location.pathname != "/"){
|
||||
location.href="/";
|
||||
}
|
||||
});
|
||||
|
||||
}
|
Reference in New Issue
Block a user