aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/handleBans.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/client/handleBans.ts
parent95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff)
Prettified Code!
Diffstat (limited to 'webAO/client/handleBans.ts')
-rw-r--r--webAO/client/handleBans.ts16
1 files changed, 7 insertions, 9 deletions
diff --git a/webAO/client/handleBans.ts b/webAO/client/handleBans.ts
index 298b27f..a2e56f4 100644
--- a/webAO/client/handleBans.ts
+++ b/webAO/client/handleBans.ts
@@ -4,12 +4,10 @@
* @param {string} reason why
*/
export const handleBans = (type: string, reason: string) => {
- document.getElementById("client_error")!.style.display = "flex";
- document.getElementById(
- "client_errortext"
- )!.innerHTML = `${type}:<br>${reason.replace(/\n/g, "<br />")}`;
- (<HTMLElement>(
- document.getElementById("client_reconnect")
- )).style.display = "none";
- alert(type+":\r"+reason)
-} \ No newline at end of file
+ document.getElementById("client_error")!.style.display = "flex";
+ document.getElementById("client_errortext")!.innerHTML =
+ `${type}:<br>${reason.replace(/\n/g, "<br />")}`;
+ (<HTMLElement>document.getElementById("client_reconnect")).style.display =
+ "none";
+ alert(type + ":\r" + reason);
+};