[🎨] Fix ts-standard errors
This commit is contained in:
parent
f1c8930b18
commit
ce965120cf
2 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ class Preloader {
|
|||
this.element = document.createElement('preloader')
|
||||
|
||||
this.element.innerHTML = `
|
||||
<img src="${flowIcon as string}" width="150px">
|
||||
<img src="${flowIcon}" width="150px">
|
||||
<div class="done"></div>
|
||||
<div class="status"></div>
|
||||
`
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ class StatusBar {
|
|||
document.body.appendChild(this.element)
|
||||
}
|
||||
|
||||
add (item: Plugin): void {
|
||||
async add (item: Plugin): Promise<void> {
|
||||
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<void> {
|
||||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue