Update quick-start.md (#29333)
In version 13.0.1 preload process should added to webPreferences.
This commit is contained in:
parent
cc93b8acc0
commit
9fcdb06272
1 changed files with 3 additions and 1 deletions
|
@ -299,7 +299,9 @@ function createWindow () {
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
|
webPreferences: {
|
||||||
preload: path.join(__dirname, 'preload.js')
|
preload: path.join(__dirname, 'preload.js')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
win.loadFile('index.html')
|
win.loadFile('index.html')
|
||||||
|
|
Loading…
Reference in a new issue