feat(debug): debug rejections
This commit is contained in:
parent
76f8b9fa66
commit
ead88b0a03
@ -96,6 +96,9 @@ console.log('Free memory:', (os.freemem() / (1024 * 1024)).toFixed(2), 'MB')
|
|||||||
if(portative)
|
if(portative)
|
||||||
console.log('portative compability')
|
console.log('portative compability')
|
||||||
|
|
||||||
|
// handle promise rejections
|
||||||
|
process.on('unhandledRejection', r => console.log('Rejection:', r));
|
||||||
|
|
||||||
const shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) {
|
const shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) {
|
||||||
// Someone tried to run a second instance, we should focus our window.
|
// Someone tried to run a second instance, we should focus our window.
|
||||||
console.log('openned second application, just focus this one')
|
console.log('openned second application, just focus this one')
|
||||||
|
Loading…
Reference in New Issue
Block a user