main.js 267 B

12345678910111213
  1. var app = require('electron').app
  2. app.on('ready', function () {
  3. // This setImmediate call gets the spec passing on Linux
  4. setImmediate(function () {
  5. app.exit(123)
  6. })
  7. })
  8. process.on('exit', function (code) {
  9. console.log('Exit event with code: ' + code)
  10. })