aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2021-03-23 00:23:01 +0100
committerstonedDiscord <Tukz@gmx.de>2021-03-23 00:23:01 +0100
commit8b0a483627c58cb173d7f789e3014f02eb420eef (patch)
tree657b26442b62191130bb6437efddad02ee0b0c25 /webAO/client.js
parentb9fabd6914d3d08817f21bb2575c4acbe23415f2 (diff)
show the ban reason on early disconnect
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 0a0dd47..7d94ee3 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -510,7 +510,7 @@ class Client extends EventEmitter {
*/
onClose(e) {
console.error(`The connection was closed: ${e.reason} (${e.code})`);
- if (this.char_list_length == 0) {
+ if (extrafeatures.length == 0) {
document.getElementById("client_errortext").textContent = "Could not connect to the server";
}
document.getElementById("client_error").style.display = "flex";