electron/browser/api/lib/app.coffee

15 lines
344 B
CoffeeScript
Raw Normal View History

bindings = process.atomBinding 'app'
2013-05-02 16:05:09 +00:00
EventEmitter = require('events').EventEmitter
Application = bindings.Application
Application::__proto__ = EventEmitter.prototype
app = new Application
app.commandLine =
appendSwitch: bindings.appendSwitch,
appendArgument: bindings.appendArgument
2013-05-02 16:05:09 +00:00
# Only one App object pemitted.
module.exports = app