From df307f86ad32fcc841c770e8f5af72e8c0b80cfb Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 4 May 2022 15:16:56 -0700 Subject: web: abstract away most EM_ASM calls to dom file --- web/web_svg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/web_svg.c') 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); } -- cgit v1.2.3-70-g09d2