diff options
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 4299dd3..cb84fe3 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -93,13 +93,13 @@ prompt_handlers.visit = { submit() { let pts = this._get_and_clear(); if (pts) - Module.ccall('user_visit', 'number', ['number'], [pts]); + Module.ccall('user_visit', null, ['number'], [pts]); }, submit_rem() { let rem = this._get_and_clear(); if (rem) - Module.ccall('user_visit_to_rem', 'number', ['number'], [rem]); + Module.ccall('user_visit_to_rem', null, ['number'], [rem]); } }; @@ -109,7 +109,7 @@ prompt_handlers.num_darts = { submit() { let n = this._get_and_clear(); if (n) - Module.ccall('resp_numdarts', null, ['number'], [n]); + Module.ccall('user_num_darts', null, ['number'], [n]); } }; @@ -236,7 +236,7 @@ function updateStdev(val) { document.getElementById('stdev').value = val; } -function read_opts() { +function readOpts() { let val; if ((val = localStorage.getItem('dartboat_delay'))) |