Remove rogue async breaking my loading screen
All checks were successful
continuous-integration/drone/push Build is passing

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

View file

@ -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");
});
}