aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorcaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-21 17:26:05 -0400
committercaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-21 17:26:05 -0400
commit79db229a94aa3f407399158470e3d027d2b035e8 (patch)
tree0cdf0a3da7f9ab0289cef047167c3a75e7eb2ab9 /webAO/client.js
parent27e9271bf46016a77d4f9e9ce654a6be2aceaed1 (diff)
Fixing bugs
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index a59508e..87db272 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2092,7 +2092,7 @@ class Viewport {
if (soundChecks.some((check) => this.chatmsg.sound === check)) {
this.chatmsg.sound = this.chatmsg.effects[2];
}
- this.chatmsg.parsed = attorneyMarkdown.applyMarkdown(chatmsg.content)
+ this.chatmsg.parsed = attorneyMarkdown.applyMarkdown(chatmsg.content, this.colors[this.chatmsg.color])
this.tick();
}
@@ -2244,7 +2244,6 @@ class Viewport {
this.currentBlipChannel %= this.blipChannels.length;
}
this.textnow = this.chatmsg.content.substring(0, this.textnow.length + 1);
-
chatBoxInner.appendChild(this.chatmsg.parsed[this.textnow.length - 1]);
// scroll to bottom