Added basic browser-side chat pre-processor.
This commit is contained in:
parent
2dbf3b97d5
commit
8b52946925
3 changed files with 69 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue