Added basic browser-side chat pre-processor.

This commit is contained in:
rainbow napkin 2024-12-03 04:40:07 -05:00
parent 2dbf3b97d5
commit 8b52946925
3 changed files with 69 additions and 1 deletions

View file

@ -24,6 +24,7 @@ class chatBox{
//clickDragger object
this.clickDragger = new canopyUXUtils.clickDragger("#chat-panel-drag-handle", "#chat-panel-div");
this.chatPreprocessor = new chatPreprocessor();
//Element Nodes
this.chatPanel = document.querySelector("#chat-panel-div");
@ -106,7 +107,8 @@ class chatBox{
chatBody.innerHTML = chat.msg;
chatEntry.appendChild(chatBody);
this.chatBuffer.appendChild(chatEntry);
this.chatBuffer.appendChild(this.chatPreprocessor.preprocess(chatEntry));
}
async send(event){