aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/fixLastArea.ts
blob: f1aa99f36537486f1809616e4213be09a671ae15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
    }
}