fix(edit-demo): get it to actually start

This commit is contained in:
Elian Doran
2025-05-27 18:32:00 +03:00
parent 76bc3d858c
commit 7cb4cc8469
3 changed files with 35 additions and 21 deletions

View File

@@ -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() {