Skip to content

Commit 9fcdb06

Browse files
authored
Update quick-start.md (electron#29333)
In version 13.0.1 preload process should added to webPreferences.
1 parent cc93b8a commit 9fcdb06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/tutorial/quick-start.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ function createWindow () {
299299
const win = new BrowserWindow({
300300
width: 800,
301301
height: 600,
302-
preload: path.join(__dirname, 'preload.js')
302+
webPreferences: {
303+
preload: path.join(__dirname, 'preload.js')
304+
}
303305
})
304306

305307
win.loadFile('index.html')

0 commit comments

Comments
 (0)