From 9e6a5534344bfbfc600a558cd11e00b68cdac6a6 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 4 Jun 2023 15:31:42 -0400 Subject: [PATCH] preload antennas & lists --- packages/client/src/pages/timeline.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 5d96d6dfd8..d093676280 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -152,8 +152,8 @@ function top(): void { scroll(rootEl, { top: 0 }); } -async function chooseList(ev: MouseEvent): Promise { - 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 { os.popupMenu(items, ev.currentTarget ?? ev.target); } -async function chooseAntenna(ev: MouseEvent): Promise { - const antennas = await os.api("antennas/list"); +const antennas = await os.api("antennas/list"); +function chooseAntenna(ev: MouseEvent) { const items = [ { type: "link" as const,