js gestion erreur ajax

This commit is contained in:
Gnieark 2016-05-11 11:08:20 +02:00
parent 2aff5db168
commit 1388352355

View File

@ -20,7 +20,7 @@ function connectFour(bot1,bot2,xd_check){
document.getElementById('fightResult').innerHTML = xhr.responseText;
}else{
alert ('error ' + xhr.status);
break;
return;
}
}};
xhr.open("POST", '/connectFour', true);