Mercurial Hosting > lang
diff src/chat.js @ 13:65bd7e245c63
add html
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 24 Jul 2025 22:47:48 -0600 |
parents | 2d4b3f003ec2 |
children | 47b00cce8b53 |
line wrap: on
line diff
--- a/src/chat.js Thu Jul 24 22:14:49 2025 -0600 +++ b/src/chat.js Thu Jul 24 22:47:48 2025 -0600 @@ -42,7 +42,7 @@ function updateAi(html) { hideWaitingAiIcon(); - document.querySelector('div[messages]').innerHTML = html; + document.querySelector('div[messages]').insertAdjacentHTML('beforeend',html); handleMarkdown(); document.querySelector('textarea').focus(); window.scrollTo(0, document.body.scrollHeight);