js gestion erreur ajax
This commit is contained in:
parent
2aff5db168
commit
1388352355
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user