dashboard wip

This commit is contained in:
2022-07-28 00:15:57 +02:00
parent e86a4aa0cf
commit 7022508ec0
2 changed files with 13 additions and 12 deletions

View File

@@ -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="/";
}
});
}