From 29da4570f69c136cac8ad610566b9456e2cd3972 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 17 Jul 2021 01:14:52 +0200 Subject: Allow passing '0' as action argument. --- ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui.js') diff --git a/ui.js b/ui.js index bc73b86..befdad6 100644 --- a/ui.js +++ b/ui.js @@ -69,9 +69,9 @@ function on_blur(evt) { document.getElementById("status").textContent = ""; } -function on_pass() { if (game.actions) { send_action('pass', null); } } -function on_undo() { if (game.actions) { send_action('undo', null); } } -function on_next() { if (game.actions) { send_action('next', null); } } +function on_pass() { if (game.actions) { send_action('pass'); } } +function on_undo() { if (game.actions) { send_action('undo'); } } +function on_next() { if (game.actions) { send_action('next'); } } function on_click_space(evt) { send_action('space', evt.target.space); } function on_click_piece(evt) { send_action('piece', evt.target.piece); } -- cgit v1.2.3