electron/spec/fixtures/api/quit-app/main.js
cesine 2aff0c47d0 ⬆️ 👕 updated to eslint 2.1.0
Verified migration doc (nothing to be done)
http://eslint.org/docs/user-guide/migrating-to-2.0.0

And made sure the eslint tasks passed
2016-02-15 22:30:29 -05:00

12 lines
273 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);
});