diff --git a/src/background.ts b/src/background.ts index bec4ba12c..c3c4c6a8b 100644 --- a/src/background.ts +++ b/src/background.ts @@ -144,14 +144,14 @@ app.on("ready", async () => { appLangAliases: null, mocks: false, }) - .then((ad4mCore: ad4m.PerspectivismCore) => { + .then(async (ad4mCore: ad4m.PerspectivismCore) => { Core = ad4mCore; console.log( "\x1b[36m%s\x1b[0m", "Starting account creation splash screen" ); - createWindow(); + await createWindow(); Core.waitForAgent().then(async () => { win.webContents.send("setGlobalLoading", true);