2020-03-20 13:28:31 -07:00
|
|
|
const { app } = require('electron');
|
2015-12-07 17:05:08 -08:00
|
|
|
|
2020-02-03 16:43:22 -06:00
|
|
|
app.whenReady().then(function () {
|
2015-12-09 18:39:59 -08:00
|
|
|
// This setImmediate call gets the spec passing on Linux
|
|
|
|
setImmediate(function () {
|
2020-03-20 13:28:31 -07:00
|
|
|
app.exit(123);
|
|
|
|
});
|
|
|
|
});
|
2015-12-07 17:05:08 -08:00
|
|
|
|
|
|
|
process.on('exit', function (code) {
|
2020-03-20 13:28:31 -07:00
|
|
|
console.log('Exit event with code: ' + code);
|
|
|
|
});
|