electron/spec/fixtures/api/quit-app/main.js
2015-12-09 18:40:10 -08:00

12 lines
267 B
JavaScript

var app = require('electron').app
app.on('ready', function () {
// This setImmediate call gets the spec passing on Linux
setImmediate(function () {
app.exit(123)
})
})
process.on('exit', function (code) {
console.log('Exit event with code: ' + code)
})