mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Update quick-start.md (#29333)
In version 13.0.1 preload process should added to webPreferences.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user