diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-25 18:12:37 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-25 18:12:37 -0700 |
commit | ea49bdfd2c83a0fced5a43015f5c1ce4f5dbce65 (patch) | |
tree | bfadc5d352adb0d4c7926c22826f67268b6145f0 /web/static/dartboat.js | |
parent | 69325ef5bbd7f34e894222b9c416c94f4236ac2c (diff) | |
download | dartboat-ea49bdfd2c83a0fced5a43015f5c1ce4f5dbce65.tar.gz dartboat-ea49bdfd2c83a0fced5a43015f5c1ce4f5dbce65.tar.xz |
web: use a common function to determine the next action
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r-- | web/static/dartboat.js | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |