Add the 'app' built-in module.
This commit is contained in:
parent
d151d494bd
commit
66404b5f15
5 changed files with 84 additions and 0 deletions
8
browser/api/lib/app.coffee
Normal file
8
browser/api/lib/app.coffee
Normal file
|
@ -0,0 +1,8 @@
|
|||
binding = process.atomBinding 'app'
|
||||
EventEmitter = require('events').EventEmitter
|
||||
|
||||
class App extends EventEmitter
|
||||
quit: binding.quit
|
||||
terminate: binding.terminate
|
||||
|
||||
module.exports = new App
|
Loading…
Add table
Add a link
Reference in a new issue