summaryrefslogtreecommitdiff
path: root/web/web_dom.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-10 16:56:15 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-10 16:56:15 -0700
commit29d471c8eea0bcf5d23b9e63180e9f1b7089850c (patch)
tree876e7ee19b520240ff0a578818200903fda9464d /web/web_dom.c
parent99e7a11c25e704851cfbbaed64594acbbd752038 (diff)
downloaddartboat-29d471c8eea0bcf5d23b9e63180e9f1b7089850c.tar.gz
dartboat-29d471c8eea0bcf5d23b9e63180e9f1b7089850c.tar.xz
web: add exit dialogue while match is active
Diffstat (limited to 'web/web_dom.c')
-rw-r--r--web/web_dom.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/web_dom.c b/web/web_dom.c
index cff0459..6aa50ed 100644
--- a/web/web_dom.c
+++ b/web/web_dom.c
@@ -149,3 +149,8 @@ inline void dom_scroll_to_bottom(char *sel)
{
EM_ASM({elemScrollToBottom($0)}, sel);
}
+
+inline void dom_enable_exit_dialogue(bool enable)
+{
+ EM_ASM({enableExitDialogue($0)}, enable);
+}