blob: e4d872565ea24dfaab877539120404fd2e27827b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { client } from "../client";
/**
* 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);
client.addTrack(malplaced);
}
}
|