Skip to content

Commit

Permalink
fix: use app.quit instead of process.exit to prevent crash on close
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbreiding committed Aug 17, 2021
1 parent 0dfec80 commit 15b7482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/lib/modes/interactive-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
return os.platform() === 'darwin'
},

getWindowArgs (state, options = {}) {
getWindowArgs (state) {
const common = {
backgroundColor: '#dfe2e4',
width: state.appWidth || 800,
Expand Down Expand Up @@ -51,7 +51,7 @@ module.exports = {
return Windows.showAll()
},
onClose () {
return process.exit()
app.quit()
},
}

Expand Down

0 comments on commit 15b7482

Please sign in to comment.