Skip to content

Commit 410fe47

Browse files
authored
Update script.js
1 parent eccd335 commit 410fe47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

script.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ function streamMessage(cssClass, text) {
44
chat.appendChild(msg);
55

66
const lines = text.split("\n");
7+
78
let currentList = null;
89

910
const interval = setInterval(() => {
@@ -15,7 +16,6 @@ function streamMessage(cssClass, text) {
1516
const line = lines.shift().trim();
1617

1718
if (line === "") {
18-
currentList = null; // reset lijst bij lege regel
1919
const br = document.createElement("br");
2020
msg.appendChild(br);
2121
return;
@@ -50,4 +50,3 @@ function streamMessage(cssClass, text) {
5050
chat.scrollTop = chat.scrollHeight;
5151
}, 50);
5252
}
53-

0 commit comments

Comments
 (0)