remove data-bs-dismiss
This commit is contained in:
@@ -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(){
|
||||
|
Reference in New Issue
Block a user