From e708ea735b1cf52aa2dd2d2f50741209aa017b03 Mon Sep 17 00:00:00 2001 From: mummified-corroding-granny Date: Mon, 13 Feb 2023 00:59:48 +0000 Subject: [PATCH] do not try to render markdown preview while in chat --- files/assets/js/emoji_modal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 51810b245..ae3418f21 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -444,7 +444,9 @@ function populate_speed_emoji_modal(results, textbox) speed_carot_modal.style.display = "none"; textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "g"), `:${result}:`) textbox.focus() - markdown(textbox) + if (document.location.pathname != '/chat'){ + markdown(textbox) + } }); // Pack emoji_option.appendChild(emoji_option_img); -- 2.34.1