diff --git a/component/src/utils/HTTP/stream.ts b/component/src/utils/HTTP/stream.ts index 702a12e5..2e95e1d7 100644 --- a/component/src/utils/HTTP/stream.ts +++ b/component/src/utils/HTTP/stream.ts @@ -100,7 +100,8 @@ export class Stream { } if (result.html) { sh.onOpen(); - const responseHTMLStrings = HTMLUtils.splitHTML(result.html); + let responseHTMLStrings = HTMLUtils.splitHTML(result.html); + if (responseHTMLStrings.length === 0) responseHTMLStrings = result.html.split(''); Stream.populateMessages(responseHTMLStrings, new MessageStream(messages), simulationSH, 'html'); } }