Deprecate app.terminate API.
Users should use app.quit which can shutdown the application gracefuly.
This commit is contained in:
parent
5ead4f655a
commit
538bd1116d
5 changed files with 4 additions and 17 deletions
|
@ -27,8 +27,9 @@ if process.platform is 'darwin'
|
|||
setBadge: bindings.dockSetBadgeText
|
||||
getBadge: bindings.dockGetBadgeText
|
||||
|
||||
# Support old event name.
|
||||
# Be compatible with old API.
|
||||
app.once 'ready', -> app.emit 'finish-launching'
|
||||
app.terminate = app.exit = app.quit
|
||||
|
||||
# Only one App object pemitted.
|
||||
module.exports = app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue