summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/play.js b/play.js
index 319f79c..7f73430 100644
--- a/play.js
+++ b/play.js
@@ -152,10 +152,10 @@ function create_ui() {
// SUPPORTING FUNCTIONS
function on_click_space(evt) {
- if (evt.button === 0) {
- const space = evt.target.my_space
- //console.log('on_click_space_called with space:', space);
- if (send_action("infl", space)) {
+ if (evt.button === 0) {
+ const space = evt.target.my_space;
+ //console.log('on_click_space_called with space:', space);
+ if (send_action('space', space)) {
//console.log('send_action with infl:', space);
evt.stopPropagation()
} else if (send_action("sc", space)) {