ui bugfix

This commit is contained in:
Saifeddine ALOUI 2023-04-16 14:29:18 +02:00
parent 7a1654ec22
commit cb83a66244

View File

@ -118,11 +118,11 @@ function addMessage(sender, message, id, rank = 0, can_edit = false) {
else {
// For the other enrtries, these are just the text of the chatbot
for (const char of text) {
txt = hiddenElement.innerHTML;
txt = hiddenElement_.innerHTML;
if (char != '\f') {
txt += char
hiddenElement_.innerHTML = txt
messageTextElement_.innerHTML = txt.replace(/\n/g, "<br>")
messageTextElement_.innerHTML = txt
}
// scroll to bottom of chat window