aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/client.html2
-rw-r--r--webAO/client/handleBans.ts5
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