Skip to content

Commit

Permalink
fix: try await on createWindow with hopes webContents will be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeepee committed Jun 25, 2021
1 parent d0f52a7 commit c6c96e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6c96e2

Please sign in to comment.