summaryrefslogtreecommitdiff
path: root/web/web_svg.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-04 15:16:56 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-04 15:16:56 -0700
commitdf307f86ad32fcc841c770e8f5af72e8c0b80cfb (patch)
tree1881655a210d183ef775c1427906c765c1b14240 /web/web_svg.c
parentba56ae56ebec73ca8ea966fde4bb385f911a6669 (diff)
downloaddartboat-df307f86ad32fcc841c770e8f5af72e8c0b80cfb.tar.gz
dartboat-df307f86ad32fcc841c770e8f5af72e8c0b80cfb.tar.xz
web: abstract away most EM_ASM calls to dom file
Diffstat (limited to 'web/web_svg.c')
-rw-r--r--web/web_svg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/web_svg.c b/web/web_svg.c
index ffdd104..ab712f8 100644
--- a/web/web_svg.c
+++ b/web/web_svg.c
@@ -197,5 +197,5 @@ void svg_draw_point(double x, double y)
void svg_clear_points()
{
- EM_ASM({elemSetContent($0, $1)}, "#dartboard .overlay", NULL);
+ dom_elem_set_content("#dartboard .overlay", NULL);
}