This commit is contained in:
gnieark 2016-06-07 23:50:30 +02:00
parent 5c5e2eac71
commit 10fcf810bf

View File

@ -217,6 +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) );
if(xhr.status == 200) { if(xhr.status == 200) {
try{ try{
var reponse = JSON.parse(xhr.responseText); var reponse = JSON.parse(xhr.responseText);