mirror of
https://github.com/electron/electron.git
synced 2026-01-10 16:08:06 -05:00
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:
@@ -81,7 +81,7 @@ contextBridge.exposeInMainWorld('versions', {
|
||||
To attach this script to your renderer process, pass its path to the
|
||||
`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 path = require('path')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user