From 6084fc2562689ff7791d7196c4d92dfbf1df3d6f Mon Sep 17 00:00:00 2001 From: Wren Date: Tue, 30 Apr 2024 13:44:42 -0400 Subject: [PATCH] fix top level async issue --- Yak/src/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Yak/src/main.ts b/Yak/src/main.ts index 56944c9..ebd3cd7 100644 --- a/Yak/src/main.ts +++ b/Yak/src/main.ts @@ -14,5 +14,7 @@ app.mount('#app'); const discord = useDiscordStore(); const cable = useGameStore(); -await discord.setup(); -await cable.setup(); +( async () => { + await discord.setup(); + await cable.setup(); +})()