chat: stop console error after clicking marsey emoji speed modal #119

Merged
Aevann merged 1 commits from :fix-chat-web-dev-tools-console-error into master 2023-02-13 18:57:53 +00:00
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);