electron/spec/fixtures/api/quit-app/main.js
2020-03-20 13:28:31 -07:00

12 lines
280 B
JavaScript

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