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