mirror of
https://github.com/electron/electron.git
synced 2026-01-30 01:38:49 -05:00
* fix: quit when chromium is fully started * test: remove hacks on app.quit * chore: RunUntilIdle is unnecessary
14 lines
287 B
JavaScript
14 lines
287 B
JavaScript
const { app } = require('electron')
|
|
|
|
app.on('ready', () => {
|
|
const payload = {
|
|
hasSwitch: app.commandLine.hasSwitch('foobar'),
|
|
getSwitchValue: app.commandLine.getSwitchValue('foobar')
|
|
}
|
|
|
|
process.stdout.write(JSON.stringify(payload))
|
|
process.stdout.end()
|
|
|
|
app.quit()
|
|
})
|