|
|
@@ -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 () {
|