diff options
| author | stonedDiscord <stonedDiscord@users.noreply.github.com> | 2024-11-20 13:31:50 +0000 |
|---|---|---|
| committer | GitHub Action <actions@github.com> | 2024-11-20 13:31:50 +0000 |
| commit | 6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch) | |
| tree | b2a62247d17e23a77af57aea355ba621666817c2 /webAO/client/fixLastArea.ts | |
| parent | 95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff) | |
Prettified Code!
Diffstat (limited to 'webAO/client/fixLastArea.ts')
| -rw-r--r-- | webAO/client/fixLastArea.ts | 15 |
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); + } +}; |
