diff options
| author | sD <stoned@derpymail.org> | 2020-05-03 18:58:52 +0200 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-05-03 18:58:52 +0200 |
| commit | 89d4e999aa7aee6bb098f65a062dbc17e501e77c (patch) | |
| tree | 6ef90576edcf8749be2474d0be0a1fe92260de7f /webAO/client.js | |
| parent | 6e5769d66adc5c1f5db4d0ded0e15d66f0f63d82 (diff) | |
don't show empty shownames
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 2 |
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; |
