From 689be547d7e605d4226a8ebf48cdc4c1cba99e4e Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 5 Oct 2023 19:10:50 +0300 Subject: [PATCH] fix award note causing a "Leave site" warning --- files/assets/js/emoji_modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 94f1d5d97..10123d178 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -429,7 +429,7 @@ function populate_speed_emoji_modal(results, textbox) close_inline_speed_emoji_modal() textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "gi"), `:${name}: `) textbox.focus() - if (typeof markdown === "function") { + if (typeof markdown === "function" && textbox.dataset.preview) { markdown(textbox) } });