Spaces:
Running
Running
Update public/index.html
Browse files- public/index.html +1 -1
public/index.html
CHANGED
|
@@ -348,7 +348,7 @@
|
|
| 348 |
const isAtBottom = chatWindow.scrollHeight - chatWindow.clientHeight <= chatWindow.scrollTop + 20;
|
| 349 |
|
| 350 |
// Strict: Only render the last 3 messages
|
| 351 |
-
const limitedMessages = messages.slice(-
|
| 352 |
|
| 353 |
chatWindow.innerHTML = limitedMessages.map(m => {
|
| 354 |
let html = '';
|
|
|
|
| 348 |
const isAtBottom = chatWindow.scrollHeight - chatWindow.clientHeight <= chatWindow.scrollTop + 20;
|
| 349 |
|
| 350 |
// Strict: Only render the last 3 messages
|
| 351 |
+
const limitedMessages = messages.slice(-6); // messages.slice(-3);
|
| 352 |
|
| 353 |
chatWindow.innerHTML = limitedMessages.map(m => {
|
| 354 |
let html = '';
|