Merge pull request #9269 from electron/main-notifications

Notifications from the main process
This commit is contained in:
Cheng Zhao 2017-05-31 17:21:05 +09:00 committed by GitHub
commit e82af41591
22 changed files with 438 additions and 25 deletions

View file

@ -5,7 +5,9 @@ to the user. Electron conveniently allows developers to send notifications with
the [HTML5 Notification API](https://notifications.spec.whatwg.org/), using
the currently running operating system's native notification APIs to display it.
**Note:** Since this is an HTML5 API it is only available in the renderer process.
**Note:** Since this is an HTML5 API it is only available in the renderer process. If
you want to show Notifications in the main process please check out the
[Notification](../api/notification.md) module.
```javascript
let myNotification = new Notification('Title', {