Fix app.exit compatibility.
This commit is contained in:
parent
a16ea1fbf2
commit
e576d4c014
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ if process.platform is 'darwin'
|
|||
|
||||
# Be compatible with old API.
|
||||
app.once 'ready', -> app.emit 'finish-launching'
|
||||
app.terminate = app.exit = app.quit
|
||||
app.terminate = app.quit
|
||||
app.exit = process.exit
|
||||
|
||||
# Only one App object pemitted.
|
||||
module.exports = app
|
||||
|
|
Loading…
Reference in a new issue