aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-02-13 18:03:26 +0100
committersD <stoned@derpymail.org>2020-02-13 18:03:26 +0100
commite710580c5a21dfd9941636bd47dbb241436a6293 (patch)
tree7c87dc7b7c3e4ab748d69a10060b65a2f2a8ddb9 /webAO
parent1de76d8d8f949c819314e94265cae12d8de78089 (diff)
we can keep the color as long as we set it before showing the box
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 777a560..c21f0e8 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1256,7 +1256,6 @@ class Viewport {
// Reset CSS animation
fg.style.animation = "";
gamewindow.style.animation = "";
- chatBoxInner.className = "";
eviBox.style.opacity = "0";
eviBox.style.height = "0%";
@@ -1568,11 +1567,11 @@ class Viewport {
nameBox.style.display = "block";
nameBox.style.fontSize = (nameBox.offsetHeight * 0.7) + "px";
+ chatBoxInner.className = this.colors[this.chatmsg.color];
+
chatBox.style.display = "block";
chatBox.style.fontSize = (chatBox.offsetHeight * 0.25) + "px";
- chatBoxInner.className = this.colors[this.chatmsg.color];
-
this.chatmsg.startspeaking = false;
if (this.chatmsg.preanimdelay === 0) {