mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-18 22:04:05 +00:00
Implement OOP hosttree (#32)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@ -18,16 +18,12 @@ const { subscribe } = derived([ environment, applicationSettings ], ([ env, sett
|
||||
if (alreadyInited) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (env && settings) {
|
||||
set(true);
|
||||
alreadyInited = true;
|
||||
|
||||
// Remove loading spinner.
|
||||
document.getElementById('app-loading')?.remove();
|
||||
|
||||
// Call hooks
|
||||
listeners.forEach(l => l());
|
||||
else if (env && settings) {
|
||||
Promise.all(listeners.map(l => l())).then(() => {
|
||||
set(true);
|
||||
alreadyInited = true;
|
||||
document.getElementById('app-loading')?.remove();
|
||||
});
|
||||
}
|
||||
}, false);
|
||||
|
||||
|
Reference in New Issue
Block a user