mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 21:05:55 +01:00
fix(edit-demo): get it to actually start
This commit is contained in:
@@ -7,11 +7,14 @@ import { join } from "path";
|
||||
const DEMO_ZIP_PATH = join(__dirname, "../../server/src/assets/db/demo.zip");
|
||||
|
||||
async function main() {
|
||||
const initializedPromise = startElectron(() => {
|
||||
// Wait for the import to be finished and the application to be loaded before we listen to changes.
|
||||
setTimeout(() => registerHandlers(), 10_000);
|
||||
});
|
||||
|
||||
await initializeTranslations();
|
||||
await initializeDatabase(false);
|
||||
|
||||
await startElectron();
|
||||
await registerHandlers();
|
||||
initializedPromise.resolve();
|
||||
}
|
||||
|
||||
async function registerHandlers() {
|
||||
|
||||
Reference in New Issue
Block a user