Simplify app api.
This commit is contained in:
parent
7c50393c72
commit
da483ba7f3
3 changed files with 87 additions and 165 deletions
|
@ -2,10 +2,8 @@ EventEmitter = require('events').EventEmitter
|
|||
|
||||
bindings = process.atomBinding 'app'
|
||||
|
||||
Application = bindings.Application
|
||||
Application::__proto__ = EventEmitter.prototype
|
||||
|
||||
app = new Application
|
||||
app = bindings.app
|
||||
app.__proto__ = EventEmitter.prototype
|
||||
|
||||
app.getHomeDir = ->
|
||||
process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue