add promiser to window

This commit is contained in:
parent 481331b494
commit 567aff2acb
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -18,8 +18,9 @@ export default class MyPlugin extends Plugin {
await this.loadSettings(); await this.loadSettings();
console.log(import.meta); console.log(import.meta);
// This creates an icon in the left ribbon.
await this.initSqlite(); await this.initSqlite();
await this.start();
(window as any).sqlite3Promiser = this.promiser;
} }
onunload() { onunload() {
@ -62,7 +63,6 @@ export default class MyPlugin extends Plugin {
worker: () => w, worker: () => w,
}); });
}); });
await this.start();
} }
async start() { async start() {