aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-05-03 18:58:52 +0200
committersD <stoned@derpymail.org>2020-05-03 18:58:52 +0200
commit89d4e999aa7aee6bb098f65a062dbc17e501e77c (patch)
tree6ef90576edcf8749be2474d0be0a1fe92260de7f
parent6e5769d66adc5c1f5db4d0ded0e15d66f0f63d82 (diff)
don't show empty shownames
-rw-r--r--webAO/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 0925b9f..9eb3768 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1619,7 +1619,7 @@ async changeBackground(position) {
const nameBoxInner = document.getElementById("client_inner_name");
const chatBoxInner = document.getElementById("client_inner_chat");
- const displayname = document.getElementById("showname").checked ? this.chatmsg.showname : this.chatmsg.nameplate;
+ const displayname = (document.getElementById("showname").checked && this.chatmsg.showname !== "") ? this.chatmsg.showname : this.chatmsg.nameplate;
//Clear out the last message
chatBoxInner.innerText = this.textnow;