docs: uniformize module API doc format (#28920)
This PR ensures that all API modules are present in the README doc, as there were a couple missing. It also formats all modules to contain a level-1 heading and a blockquote description.
This commit is contained in:
parent
a1a90ed03b
commit
18a76c6b9d
8 changed files with 28 additions and 10 deletions
|
@ -9,12 +9,15 @@ channel messaging.
|
|||
|
||||
## Class: MessageChannelMain
|
||||
|
||||
> Channel interface for channel messaging in the main process.
|
||||
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
Example:
|
||||
|
||||
```js
|
||||
// Main process
|
||||
const { MessageChannelMain } = require('electron')
|
||||
const { port1, port2 } = new MessageChannelMain()
|
||||
w.webContents.postMessage('port', null, [port2])
|
||||
port1.postMessage({ some: 'message' })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue