Fix ajax api-get-text

This commit is contained in:
iBNu Maksum 2024-11-21 18:09:03 +07:00
parent 5e2eaa5578
commit 699ffc1302
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -130,14 +130,15 @@
function apiGetText(){
var el = listAttApi[posAttApi];
$.get(el.getAttribute('api-get-text'), function(data) {
el.innerHTML = data;
posAttApi++;
if(posAttApi < listAttApi.length){
apiGetText();
}
});
if(el != undefined){
$.get(el.getAttribute('api-get-text'), function(data) {
el.innerHTML = data;
posAttApi++;
if(posAttApi < listAttApi.length){
apiGetText();
}
});
}
}
function setKolaps() {