This commit is contained in:
Aevann1 2022-02-02 02:06:29 +02:00
parent 412d29824f
commit 3a9a629fbe
47 changed files with 119 additions and 116 deletions

View file

@ -12,7 +12,7 @@ function banModal(link, id, name) {
xhr.setRequestHeader('xhr', 'xhr');
xhr.onload = function(){
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
myToast.show();
document.getElementById('toast-post-success-text').innerHTML = `@${name} banned`;
}