mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-17 21:31:43 +01:00
use async import for sqlite
This commit is contained in:
parent
beee6978a1
commit
afb7e1bb43
@ -11,7 +11,7 @@ import localSettings from "./local-settings";
|
|||||||
import { CAP_IS_NATIVE } from "../env";
|
import { CAP_IS_NATIVE } from "../env";
|
||||||
|
|
||||||
import CapacitorSQLiteRelay from "./cap-sqlite-relay/relay";
|
import CapacitorSQLiteRelay from "./cap-sqlite-relay/relay";
|
||||||
import database from "./cap-sqlite-relay/database";
|
// import database from "./cap-sqlite-relay/database";
|
||||||
|
|
||||||
// save the local relay from query params to localStorage
|
// save the local relay from query params to localStorage
|
||||||
const params = new URLSearchParams(location.search);
|
const params = new URLSearchParams(location.search);
|
||||||
@ -49,7 +49,7 @@ function createInternalRelay() {
|
|||||||
}
|
}
|
||||||
async function createCapacitorRelay() {
|
async function createCapacitorRelay() {
|
||||||
log("Loading Capacitor Database");
|
log("Loading Capacitor Database");
|
||||||
// const { default: database } = await import("./cap-sqlite-relay/database");
|
const { default: database } = await import("./cap-sqlite-relay/database");
|
||||||
return new CapacitorSQLiteRelay(database);
|
return new CapacitorSQLiteRelay(database);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user