mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: update code highlights in tutorial (#36893)
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. Co-authored-by: Roger Zurawicki <zurawiki@users.noreply.github.com>
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