Merge pull request #4920 from PierBover/master
Update desktop-environment-integration.md
This commit is contained in:
		
				commit
				
					
						534fa7073e
					
				
			
		
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -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 [HTML5 Notification API](https://notifications.spec.whatwg.org/), using
 | 
				
			||||||
the currently running operating system's native notification APIs to display it.
 | 
					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
 | 
					```javascript
 | 
				
			||||||
var myNotification = new Notification('Title', {
 | 
					var myNotification = new Notification('Title', {
 | 
				
			||||||
  body: 'Lorem Ipsum Dolor Sit Amet'
 | 
					  body: 'Lorem Ipsum Dolor Sit Amet'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue