2018-09-29 01:17:00 +02: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 () {
|
2016-03-25 13:03:49 -07:00
|
|
|
app.exit(123);
|
|
|
|
});
|
|
|
|
});
|
2015-12-07 17:05:08 -08:00
|
|
|
|
|
|
|
process.on('exit', function (code) {
|
2016-03-25 13:03:49 -07:00
|
|
|
console.log('Exit event with code: ' + code);
|
|
|
|
});
|