Skip to content

Commit

Permalink
feat(debug): debug rejections
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Jun 22, 2018
1 parent 651c845 commit c9e0fb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ console.log('Free memory:', (os.freemem() / (1024 * 1024)).toFixed(2), 'MB')
if(portative)
console.log('portative compability')

// handle promise rejections
process.on('unhandledRejection', r => console.log('Rejection:', r));

const shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) {
// Someone tried to run a second instance, we should focus our window.
console.log('openned second application, just focus this one')
Expand Down

0 comments on commit c9e0fb2

Please sign in to comment.