From 9b7110d2652a18377bdd09094704188399bef0f8 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 23 Apr 2022 17:21:19 -0700 Subject: web: clear prompt when undo is pressed --- web/static/dartboat.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web') diff --git a/web/static/dartboat.js b/web/static/dartboat.js index 6a0d07b..b007c81 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -79,6 +79,7 @@ let prompt_handlers = { }, undo() { + this.clear(); let cl = document.getElementById('key_undo').classList; if (cl.contains('active')) Module.ccall('user_undo'); -- cgit v1.2.3-70-g09d2