Update quick-start.md (#29373)

In version 13.0.1 preload process should added to webPreferences.

Co-authored-by: aydon <41415004+congjiye@users.noreply.github.com>
This commit is contained in:
trop[bot]
2021-05-27 18:53:19 -07:00
committed by GitHub
parent 36793b7fb8
commit cff843ae18

View File

@@ -299,7 +299,9 @@ function createWindow () {
const win = new BrowserWindow({
width: 800,
height: 600,
preload: path.join(__dirname, 'preload.js')
webPreferences: {
preload: path.join(__dirname, 'preload.js')
}
})
win.loadFile('index.html')