.
This commit is contained in:
parent
10fcf810bf
commit
59a8d47893
|
@ -217,7 +217,7 @@ function play(player){
|
||||||
xhr.open("POST", document.getElementById('url' + player).value, false);
|
xhr.open("POST", document.getElementById('url' + player).value, false);
|
||||||
xhr.setRequestHeader("Content-Type", "application/json");
|
xhr.setRequestHeader("Content-Type", "application/json");
|
||||||
xhr.send(JSON.stringify(arrToSend) );
|
xhr.send(JSON.stringify(arrToSend) );
|
||||||
addlog('Message send to player ' + player + ': ' +JSON.stringify(arrToSend) );
|
addLog('Message send to player ' + player + ': ' +JSON.stringify(arrToSend) );
|
||||||
if(xhr.status == 200) {
|
if(xhr.status == 200) {
|
||||||
try{
|
try{
|
||||||
var reponse = JSON.parse(xhr.responseText);
|
var reponse = JSON.parse(xhr.responseText);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user