mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 10:46:27 +00:00
ui bugfix
This commit is contained in:
parent
7a1654ec22
commit
cb83a66244
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user