Standardize the webContents object name
This commit is contained in:
		
					parent
					
						
							
								f6a0e5ad31
							
						
					
				
			
			
				commit
				
					
						b611154f43
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,7 @@ a renderer will be emitted to this module.
 | 
			
		|||
## Sending Messages
 | 
			
		||||
 | 
			
		||||
It is also possible to send messages from the main process to the renderer
 | 
			
		||||
process, see [WebContents.send][webcontents-send] for more information.
 | 
			
		||||
process, see [webContents.send][webcontents-send] for more information.
 | 
			
		||||
 | 
			
		||||
* When sending a message, the event name is the `channel`.
 | 
			
		||||
* To reply a synchronous message, you need to set `event.returnValue`.
 | 
			
		||||
| 
						 | 
				
			
			@ -66,6 +66,6 @@ Set this to the value to be returned in a synchronous message.
 | 
			
		|||
 | 
			
		||||
Returns the `webContents` that sent the message, you can call
 | 
			
		||||
`event.sender.send` to reply to the asynchronous message, see
 | 
			
		||||
[WebContents.send][webcontents-send] for more information.
 | 
			
		||||
[webContents.send][webcontents-send] for more information.
 | 
			
		||||
 | 
			
		||||
[webcontents-send]: web-contents.md#webcontentssendchannel-args
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue