X-Git-Url: https://git.auder.net/?p=xogo.git;a=blobdiff_plain;f=app.js;h=e269c5bf06f240043dba851d38bb539ad380e9c6;hp=0a1fffec568934802e4fb3c854b19f7badbf3b38;hb=32f57b428838b84966ea02cc7193c4c81bc4cec9;hpb=ec777d4abf1ce4954e13d0e37bbd918d7d8c5776 diff --git a/app.js b/app.js index 0a1fffe..e269c5b 100644 --- a/app.js +++ b/app.js @@ -86,8 +86,9 @@ function cancelSeek() { if (send("cancelseek", {vname: seek_vname})) toggleVisible("newGame"); } -function sendRematch() { - if (send("rematch", {gid: gid})) toggleVisible("pendingRematch"); +function sendRematch(random) { + if (send("rematch", {gid: gid, random: !!random})) + toggleVisible("pendingRematch"); } function cancelRematch() { if (send("norematch", {gid: gid})) toggleVisible("newGame");