mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix app.exit compatibility.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user