diff options
| author | sD <stoned@derpymail.org> | 2020-04-07 18:11:25 +0200 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-04-07 18:11:25 +0200 |
| commit | c04ddc5a1f054e0b05ce66c0d26ae1653c41fccf (patch) | |
| tree | 46c15c17d0b46b2630fce5c27442852a0d6f022e /webAO/client.js | |
| parent | ca68537c61b64f40f0fa6a43f1fadb2671bfaf85 (diff) | |
chatcontainer is only used once in this block
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 7 |
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"; |
