diff --git a/main.js b/main.js index e366d5b..c4d7e19 100644 --- a/main.js +++ b/main.js @@ -22,7 +22,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', function () {