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 | |
| parent | 85e517cd51364e68bdc3d4e01fdc04236613206d (diff) | |
fix reconnect button
| -rw-r--r-- | public/client.html | 2 | ||||
| -rw-r--r-- | webAO/client/handleBans.ts | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/public/client.html b/public/client.html index 0e92465..62ecb55 100644 --- a/public/client.html +++ b/public/client.html @@ -85,7 +85,7 @@ </div> <p>Having trouble? <a href="https://discord.gg/9rYQVVQ">Join us on Discord</a></p> - <button class="client_reconnect" onclick="ReconnectButton()">Reconnect</button> + <button id="client_reconnect" onclick="ReconnectButton()">Reconnect</button> </div> </body> 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 |
