From 447473a5b74151ba2cc2de38190ca09e2bca2164 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 2 Jul 2020 10:46:46 +0200 Subject: [PATCH] Remove rogue async breaking my loading screen --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8949296..a67ae19 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,7 +35,7 @@ async function load() { ); spinnerContainer.appendChild(icons); - const promises = sections.flatMap(async (section) => { + const promises = sections.flatMap((section) => { manager.createSection(section.name); return section.tabs.map(async (tab) => { @@ -60,7 +60,6 @@ async function load() { Promise.all(promises).then(() => { // Remove app-wide loading manager.setLoading(false); - welcome.classList.add("active"); }); }