electron/spec/fixtures/api/quit-app/main.js

13 lines
267 B
JavaScript
Raw Normal View History

2015-12-08 01:05:08 +00:00
var app = require('electron').app
app.on('ready', function () {
2015-12-10 02:39:59 +00:00
// This setImmediate call gets the spec passing on Linux
setImmediate(function () {
app.exit(123)
})
2015-12-08 01:05:08 +00:00
})
process.on('exit', function (code) {
2015-12-10 02:23:50 +00:00
console.log('Exit event with code: ' + code)
2015-12-08 01:05:08 +00:00
})