Skip to content

Commit

Permalink
refactor: use app.whenReady(), not of .once(ready) (#366)
Browse files Browse the repository at this point in the history
Similar to c83f836faf1888ab3eb443bf719c054bcc7e4e1b in electron/electron
  • Loading branch information
ckerr authored Mar 16, 2020
1 parent 6515293 commit bfe7da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit bfe7da1

Please sign in to comment.