diff options
Diffstat (limited to 'web/web_opts.c')
-rw-r--r-- | web/web_opts.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/web_opts.c b/web/web_opts.c index c156598..f255a83 100644 --- a/web/web_opts.c +++ b/web/web_opts.c @@ -1,3 +1,4 @@ +#include "web_dom.h" #include "web_opts.h" #include "comp.h" @@ -68,7 +69,7 @@ void opts_init() char buf[64]; sprintf(buf, "%d", delay_ms); - EM_ASM({elemSetValue($0, $1)}, "#delay", buf); + dom_elem_set_value("#delay", buf); int len = sprintf(buf, "%4.2f", horizontal_stdev); char *dot = strchr(buf, '.'); @@ -79,7 +80,7 @@ void opts_init() *ptr = 0; } } - EM_ASM({elemSetValue($0, $1)}, "#stdev", buf); + dom_elem_set_value("#stdev", buf); } void store_opt(char *opt, char *val) |