preload antennas & lists

This commit is contained in:
Freeplay 2023-06-04 15:31:42 -04:00
parent c964313d54
commit 2dc7d11166

View File

@ -152,8 +152,8 @@ function top(): void {
scroll(rootEl, { top: 0 });
}
async function chooseList(ev: MouseEvent): Promise<void> {
const lists = await os.api("users/lists/list");
const lists = await os.api("users/lists/list");
function chooseList(ev: MouseEvent) {
const items = [
{
type: "link" as const,
@ -172,8 +172,8 @@ async function chooseList(ev: MouseEvent): Promise<void> {
os.popupMenu(items, ev.currentTarget ?? ev.target);
}
async function chooseAntenna(ev: MouseEvent): Promise<void> {
const antennas = await os.api("antennas/list");
const antennas = await os.api("antennas/list");
function chooseAntenna(ev: MouseEvent) {
const items = [
{
type: "link" as const,