mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add support for both wasm/ffi version of sqlite3
This commit is contained in:
@@ -79,6 +79,9 @@ export class TaskManager extends EventTarget {
|
||||
);
|
||||
}
|
||||
}
|
||||
async init() {
|
||||
await this.db.init();
|
||||
}
|
||||
async #add_task(task: Task) {
|
||||
const r = await this.db.add_task(task);
|
||||
this.dispatchEvent("new_task", r);
|
||||
|
||||
Reference in New Issue
Block a user