diff options
| author | stonedDiscord <Tukz@gmx.de> | 2023-04-04 14:32:39 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2023-04-04 14:32:39 +0200 |
| commit | 86a5f28a3ac7cb3cfb1fea53066eacd01c4118e0 (patch) | |
| tree | 515e1cde8170ba285282b3a6269d9ede63f25790 /webAO | |
| parent | 85e517cd51364e68bdc3d4e01fdc04236613206d (diff) | |
fix reconnect button
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client/handleBans.ts | 5 |
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 |
