append when stream outputs are concatenated

This commit is contained in:
Aaron Munger
2023-07-12 15:20:43 -07:00
parent 5b78562d6c
commit e68a34f9bd
2 changed files with 9 additions and 4 deletions

View File

@@ -128,7 +128,7 @@ export function appendScrollableOutput(element: HTMLElement, id: string, appende
outputLengths[id] = Math.min(fullBuffer.length, softScrollableLineLimit);
const newElement = scrollableArrayOfString(id, fullBuffer.slice(-1 * softScrollableLineLimit), trustHtml);
newElement.setAttribute('output-item-id', id);
element.replaceWith();
element.replaceWith(newElement);
}
else {
element.appendChild(handleANSIOutput(buffer.join('\n'), trustHtml));