aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/fixLastArea.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/fixLastArea.ts
parent95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff)
Prettified Code!
Diffstat (limited to 'webAO/client/fixLastArea.ts')
-rw-r--r--webAO/client/fixLastArea.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/webAO/client/fixLastArea.ts b/webAO/client/fixLastArea.ts
index f1aa99f..a9979da 100644
--- a/webAO/client/fixLastArea.ts
+++ b/webAO/client/fixLastArea.ts
@@ -1,15 +1,14 @@
import { client } from "../client";
import { addTrack } from "./addTrack";
-
/**
* Area list fuckery
*/
export const fix_last_area = () => {
- if (client.areas.length > 0) {
- const malplaced = client.areas.pop().name;
- const areas = document.getElementById("areas")!;
- areas.removeChild(areas.lastChild);
- addTrack(malplaced);
- }
-} \ No newline at end of file
+ if (client.areas.length > 0) {
+ const malplaced = client.areas.pop().name;
+ const areas = document.getElementById("areas")!;
+ areas.removeChild(areas.lastChild);
+ addTrack(malplaced);
+ }
+};