Merge pull request #4920 from PierBover/master

Update desktop-environment-integration.md
This commit is contained in:
Kevin Sawicki 2016-03-28 10:44:15 -07:00
commit 534fa7073e

View file

@ -15,6 +15,8 @@ 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.
```javascript
var myNotification = new Notification('Title', {
body: 'Lorem Ipsum Dolor Sit Amet'