This commit is contained in:
Gnieark 2016-05-27 22:46:00 +02:00
parent 5c80710f8e
commit 36bed2c89f

View File

@ -138,7 +138,7 @@ function play(player){
die; die;
} }
}}; }};
xhr.open("POST", document.getElementById('player' + player + 'URL').value, true); xhr.open("POST", document.getElementById('url' + player).value, true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send('game=connectFour&match_id=666-' + player + '&you=' + symbol + '&grid=' + JSON.stringify(grid) ); xhr.send('game=connectFour&match_id=666-' + player + '&you=' + symbol + '&grid=' + JSON.stringify(grid) );