fix award note causing a "Leave site" warning

pull/211/head
Aevann 2023-10-05 19:10:50 +03:00
parent 687d310327
commit 689be547d7
1 changed files with 1 additions and 1 deletions

View File

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