Add the App.commandLine API to control Chromium's command line.
This commit is contained in:
parent
394bf0a8d9
commit
61bca04dfd
4 changed files with 50 additions and 3 deletions
|
@ -1,7 +1,14 @@
|
|||
bindings = process.atomBinding 'app'
|
||||
EventEmitter = require('events').EventEmitter
|
||||
|
||||
Application = process.atomBinding('app').Application
|
||||
Application.prototype.__proto__ = EventEmitter.prototype
|
||||
Application = bindings.Application
|
||||
Application::__proto__ = EventEmitter.prototype
|
||||
|
||||
app = new Application
|
||||
|
||||
app.commandLine =
|
||||
appendSwitch: bindings.appendSwitch,
|
||||
appendArgument: bindings.appendArgument
|
||||
|
||||
# Only one App object pemitted.
|
||||
module.exports = new Application
|
||||
module.exports = app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue