diff --git a/main.js b/main.js index ea3dd75..12ea4f3 100644 --- a/main.js +++ b/main.js @@ -870,7 +870,7 @@ function createWindow() { // This method will be called when Electron has finished // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. -app.on("ready", createWindow); +app.whenReady().then(createWindow) // Quit when all windows are closed. app.on("window-all-closed", async function () {