do not try to render markdown preview while in chat

pull/119/head
mummified-corroding-granny 2023-02-13 00:59:48 +00:00
parent 1344a8ed83
commit e708ea735b
1 changed files with 3 additions and 1 deletions

View File

@ -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);