From 29d471c8eea0bcf5d23b9e63180e9f1b7089850c Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 10 May 2022 16:56:15 -0700 Subject: web: add exit dialogue while match is active --- web/web_dom.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/web_dom.c') 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); +} -- cgit v1.2.3-70-g09d2