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