diff --git a/src/preloader.ts b/src/preloader.ts index 200a246..88dbcf1 100644 --- a/src/preloader.ts +++ b/src/preloader.ts @@ -7,7 +7,7 @@ class Preloader { this.element = document.createElement('preloader') this.element.innerHTML = ` - +
` diff --git a/src/statusbar.ts b/src/statusbar.ts index 521583a..37c8d6b 100644 --- a/src/statusbar.ts +++ b/src/statusbar.ts @@ -10,13 +10,13 @@ class StatusBar { document.body.appendChild(this.element) } - add (item: Plugin): void { + async add (item: Plugin): Promise { const element = document.createElement('div') element.setAttribute('data-toolbar-id', item.meta.pkg) this.element.appendChild(element) - item.run(element) + await item.run(element) } async init (): Promise { @@ -24,7 +24,7 @@ class StatusBar { for (const plugin of window.flow.plugins) { window.preloader.setStatus(`adding plugins to statusbar\n${plugin.meta.pkg}`) - this.add(plugin) + await this.add(plugin) } await window.preloader.setDone('plugins')