diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-27 16:50:08 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-27 16:50:08 -0700 |
commit | c8dafee1cd4fc5b93ae267d4dccd78d656043bdd (patch) | |
tree | e7f614be3ab594c2616e963a35065f5dab3d08c9 /web/static | |
parent | 017f75dc4ed67011e8a1005457dc4110f60d921a (diff) | |
download | dartboat-c8dafee1cd4fc5b93ae267d4dccd78d656043bdd.tar.gz dartboat-c8dafee1cd4fc5b93ae267d4dccd78d656043bdd.tar.xz |
web: no need to expose horizontal and vertical stdevs individually
Diffstat (limited to 'web/static')
-rw-r--r-- | web/static/dartboat.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js index 23c7a8d..a97e8bb 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -147,10 +147,8 @@ function updateStdev(val) { function setOpt(opt, val, update_opts = true) { if (update_opts) localStorage.setItem(`dartboat_${opt}`, val); - if (opt === 'delay') - _set_delay(Number(val)); - else if (opt === 'stdev') - _set_stdev(Number(val), Number(val)); + if (opt === 'delay' || opt === 'stdev') + Module[`_set_${opt}`](Number(val)); } function readOpts() { |