aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/reconnectButton.ts
diff options
context:
space:
mode:
authorstonedDiscord <stonedDiscord@users.noreply.github.com>2024-11-20 13:31:50 +0000
committerGitHub Action <actions@github.com>2024-11-20 13:31:50 +0000
commit6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch)
treeb2a62247d17e23a77af57aea355ba621666817c2 /webAO/dom/reconnectButton.ts
parent95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff)
Prettified Code!
Diffstat (limited to 'webAO/dom/reconnectButton.ts')
-rw-r--r--webAO/dom/reconnectButton.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/webAO/dom/reconnectButton.ts b/webAO/dom/reconnectButton.ts
index 76a6b51..079e7fc 100644
--- a/webAO/dom/reconnectButton.ts
+++ b/webAO/dom/reconnectButton.ts
@@ -6,11 +6,11 @@ const { ip: serverIP } = queryParser();
* Triggered when the reconnect button is pushed.
*/
export function ReconnectButton() {
- client.cleanup();
- setClient(new Client(serverIP));
+ client.cleanup();
+ setClient(new Client(serverIP));
- if (client) {
- document.getElementById("client_error")!.style.display = "none";
- }
+ if (client) {
+ document.getElementById("client_error")!.style.display = "none";
+ }
}
-window.ReconnectButton = ReconnectButton; \ No newline at end of file
+window.ReconnectButton = ReconnectButton;