From ea49bdfd2c83a0fced5a43015f5c1ce4f5dbce65 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 25 Apr 2022 18:12:37 -0700 Subject: web: use a common function to determine the next action --- web/static/dartboat.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/static/dartboat.js') diff --git a/web/static/dartboat.js b/web/static/dartboat.js index cb84fe3..cb8e9dd 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -113,19 +113,19 @@ prompt_handlers.num_darts = { } }; -prompt_handlers.match_over = { +prompt_handlers.end_match = { __proto__: prompt_handlers.default_with_undo, append() {}, submit() { - Module.ccall('prompt_match_mode'); + Module.ccall('end_match'); } }; -prompt_handlers.init = { +prompt_handlers.match_mode = { __proto__: prompt_handlers.default, - _keypad: 'init', + _keypad: 'match_mode', submit() { let v = this._get_and_clear(); -- cgit v1.2.3-70-g09d2