fix empty socket messages

This commit is contained in:
Thibault Duplessis 2014-10-20 14:14:52 +02:00
parent 7df149acf9
commit 548fd1b607

View file

@ -17,10 +17,10 @@ module.exports = {
ctrl.trans('theOtherPlayerHasLeftTheGameYouCanForceResignationOrWaitForHim'),
m('br'),
m('a.button', {
onclick: partial(ctrl.socket.send, 'resign-force'),
onclick: partial(ctrl.socket.send, 'resign-force', null),
}, ctrl.trans('forceResignation')),
m('a.button', {
onclick: partial(ctrl.socket.send, 'draw-force'),
onclick: partial(ctrl.socket.send, 'draw-force', null),
}, ctrl.trans('forceDraw'))
]);
},