docs: update code highlights in tutorial (#36691)
docs: fix code highlighting in preload tutorial The highlighted lines in the code snippets were unaligned, which could cause a newcomer unneeded confusion on what lines need to be changed.
This commit is contained in:
parent
c4a93390dd
commit
28cfaccb1d
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ contextBridge.exposeInMainWorld('versions', {
|
||||||
To attach this script to your renderer process, pass its path to the
|
To attach this script to your renderer process, pass its path to the
|
||||||
`webPreferences.preload` option in the BrowserWindow constructor:
|
`webPreferences.preload` option in the BrowserWindow constructor:
|
||||||
|
|
||||||
```js {8-10} title="main.js"
|
```js {2,8-10} title="main.js"
|
||||||
const { app, BrowserWindow } = require('electron')
|
const { app, BrowserWindow } = require('electron')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue