remove data-bs-dismiss

This commit is contained in:
2022-08-14 19:32:40 +02:00
parent 10180c917f
commit b9aefc1dcd
4 changed files with 41 additions and 18 deletions

View File

@@ -11,6 +11,11 @@ function checkToken(){
if(location.pathname != "/"){
location.href="/";
}
if(error.response.status == 406){
instance.delete("token" , {withCredentials:true}).then(function(response){
location.reload();
});
}
});
}
@@ -20,11 +25,11 @@ function signOut(){
document.getElementById("signout").addEventListener("click", function(){
instance.delete("token" , {withCredentials:true}).then(function(response){
if(response.status == 200){
location.href="/"
if(response.status == 200) {
location.href="/";
}
});
});
});
}
function closeButton(){