зеркало из https://github.com/electron/electron.git
docs: Fix incorrect highlight in an example snippet (#36700)
Fix incorrect highlight in an example snippet At the moment, the "Communicating between processes" `main.js` snippet highlights the line containing `})` when the relevant line is `ipcMain.handle('ping', () => 'pong')`.
This commit is contained in:
Родитель
5fd7a43970
Коммит
8c837fda4f
|
@ -202,7 +202,7 @@ Then, set up your `handle` listener in the main process. We do this _before_
|
|||
loading the HTML file so that the handler is guaranteed to be ready before
|
||||
you send out the `invoke` call from the renderer.
|
||||
|
||||
```js {1,11} title="main.js"
|
||||
```js {1,12} title="main.js"
|
||||
const { app, BrowserWindow, ipcMain } = require('electron')
|
||||
const path = require('path')
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче