From ce965120cf1bf0fb32774a06258291a94547ea53 Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Wed, 18 Oct 2023 22:34:33 +0100 Subject: [PATCH] =?UTF-8?q?[=F0=9F=8E=A8]=20Fix=20ts-standard=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/preloader.ts | 2 +- src/statusbar.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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')