From 567aff2acb8dc6cc901d16dfdca903661b6bcb3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Mon, 22 Jul 2024 20:29:58 -0400 Subject: [PATCH] add promiser to window --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 5e1112a..2b58e77 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,8 +18,9 @@ export default class MyPlugin extends Plugin { await this.loadSettings(); console.log(import.meta); - // This creates an icon in the left ribbon. await this.initSqlite(); + await this.start(); + (window as any).sqlite3Promiser = this.promiser; } onunload() { @@ -62,7 +63,6 @@ export default class MyPlugin extends Plugin { worker: () => w, }); }); - await this.start(); } async start() {