Remove rogue async breaking my loading screen

This commit is contained in:
Hamcha 2020-07-02 10:46:46 +02:00
parent bc0e467a88
commit 447473a5b7
Signed by untrusted user: hamcha
GPG key ID: 41467804B19A3315

View file

@ -35,7 +35,7 @@ async function load() {
); );
spinnerContainer.appendChild(icons); spinnerContainer.appendChild(icons);
const promises = sections.flatMap(async (section) => { const promises = sections.flatMap((section) => {
manager.createSection(section.name); manager.createSection(section.name);
return section.tabs.map(async (tab) => { return section.tabs.map(async (tab) => {
@ -60,7 +60,6 @@ async function load() {
Promise.all(promises).then(() => { Promise.all(promises).then(() => {
// Remove app-wide loading // Remove app-wide loading
manager.setLoading(false); manager.setLoading(false);
welcome.classList.add("active"); welcome.classList.add("active");
}); });
} }