Browse Source

Update quick-start.md (#29371)

In version 13.0.1 preload process should added to webPreferences.

Co-authored-by: aydon <[email protected]>
trop[bot] 3 years ago
parent
commit
b983bda721
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/tutorial/quick-start.md

+ 3 - 1
docs/tutorial/quick-start.md

@@ -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')