Remove rogue async breaking my loading screen
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bc0e467a88
commit
447473a5b7
1 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue