Refactored events to use a small global event bus

This commit is contained in:
Simon Cambier
2022-04-22 22:29:52 +02:00
parent acece86ee3
commit 330df899a0
11 changed files with 104 additions and 58 deletions

View File

@@ -32,7 +32,7 @@ export function removeFrontMatter(text: string): string {
}
export function wait(ms: number): Promise<void> {
return new Promise((resolve, reject) => {
return new Promise(resolve => {
setTimeout(resolve, ms)
})
}