Merge pull request #7053 from electron/launch-from-notification

Send notification info to app.ready, on macOS
This commit is contained in:
Cheng Zhao 2016-09-09 20:01:39 +09:00 committed by GitHub
commit b6079ff90b
8 changed files with 28 additions and 11 deletions

View file

@ -28,7 +28,13 @@ In most cases, you should just do everything in the `ready` event handler.
### Event: 'ready'
Emitted when Electron has finished initialization.
Returns:
* `launchInfo` Object _macOS_
Emitted when Electron has finished initialization. On macOS, `launchInfo` holds
the `userInfo` of the `NSUserNotification` that was used to open the application,
if it was launched from Notification Center.
### Event: 'window-all-closed'