electron/spec/fixtures/api/quit-app/main.js
2018-09-29 09:17:00 +10:00

12 lines
269 B
JavaScript

const { app } = require('electron')
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)
})