aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-07 18:11:25 +0200
committersD <stoned@derpymail.org>2020-04-07 18:11:25 +0200
commitc04ddc5a1f054e0b05ce66c0d26ae1653c41fccf (patch)
tree46c15c17d0b46b2630fce5c27442852a0d6f022e /webAO
parentca68537c61b64f40f0fa6a43f1fadb2671bfaf85 (diff)
chatcontainer is only used once in this block
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 3bcde46..1c306c9 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1539,9 +1539,9 @@ async changeBackground(position) {
const charSprite = document.getElementById("client_char");
const pairSprite = document.getElementById("client_pair_char");
+ const chatContainerBox = document.getElementById("client_chatcontainer");
const nameBox = document.getElementById("client_name");
- const chatBox = document.getElementById("client_chat");
- const chatContainerBox = document.getElementById("client_chatcontainer");
+ const chatBox = document.getElementById("client_chat");
const chatBoxInner = document.getElementById("client_inner_chat");
//Clear out the last message
@@ -1701,7 +1701,6 @@ async changeBackground(position) {
const nameBox = document.getElementById("client_name");
const chatBox = document.getElementById("client_chat");
- const chatContainerBox = document.getElementById("client_chatcontainer");
const waitingBox = document.getElementById("client_chatwaiting");
const charSprite = document.getElementById("client_char");
const pairSprite = document.getElementById("client_pair_char");
@@ -1774,7 +1773,7 @@ async changeBackground(position) {
}
}
- chatContainerBox.style.display = "block";
+ document.getElementById("client_chatcontainer").style.display = "block";
nameBox.style.display = "block";
nameBox.style.fontSize = (nameBox.offsetHeight * 0.7) + "px";