aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/handleBans.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client/handleBans.ts')
-rw-r--r--webAO/client/handleBans.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/webAO/client/handleBans.ts b/webAO/client/handleBans.ts
index c821242..298b27f 100644
--- a/webAO/client/handleBans.ts
+++ b/webAO/client/handleBans.ts
@@ -9,10 +9,7 @@ export const handleBans = (type: string, reason: string) => {
"client_errortext"
)!.innerHTML = `${type}:<br>${reason.replace(/\n/g, "<br />")}`;
(<HTMLElement>(
- document.getElementsByClassName("client_reconnect")[0]
- )).style.display = "none";
- (<HTMLElement>(
- document.getElementsByClassName("client_reconnect")[1]
+ document.getElementById("client_reconnect")
)).style.display = "none";
alert(type+":\r"+reason)
} \ No newline at end of file