Fix load
Using .on("ready" was not causing the window to start loading the renderer unless createWindow was made async.
This commit is contained in:
parent
54e8d64b9e
commit
a0d44b58e2
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ const main = () => {
|
|||
// Emitted once, when Electron has finished initializing.
|
||||
//
|
||||
// Note that some Electron APIs can only be used after this event occurs.
|
||||
app.on("ready", () => {
|
||||
void app.whenReady().then(() => {
|
||||
void (async () => {
|
||||
// Create window and prepare for the renderer.
|
||||
mainWindow = createMainWindow();
|
||||
|
|
Loading…
Add table
Reference in a new issue