Skip to content

Commit

Permalink
Merge pull request #56 from emmanuelroecker/destroy-window-before-exit
Browse files Browse the repository at this point in the history
window must be destroyed before electron exit
  • Loading branch information
jprichardson committed Apr 20, 2016
2 parents 4d63004 + 0a93600 commit fa1673d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ app.on('ready', function () {
win._loadUrlWithArgs(indexPath, opts, function () {})
// win.showUrl(indexPath, opts)
ipc.on('mocha-done', function (event, code) {
win.destroy()
exit(code)
})
ipc.on('mocha-error', function (event, data) {
win.destroy()
writeError(data)
exit(1)
})
Expand Down

0 comments on commit fa1673d

Please sign in to comment.