mirror of
https://github.com/electron/electron.git
synced 2026-01-15 02:18:18 -05:00
13 lines
280 B
JavaScript
13 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);
|
|
});
|