2016-03-25 20:03:49 +00:00
|
|
|
var app = require('electron').app
|
2015-12-08 01:05:08 +00:00
|
|
|
|
|
|
|
app.on('ready', 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)
|
|
|
|
})
|