From 9fcdb062727ff1519ca00a32d975481879aa8267 Mon Sep 17 00:00:00 2001 From: aydon <41415004+congjiye@users.noreply.github.com> Date: Fri, 28 May 2021 02:46:32 +0800 Subject: [PATCH] Update quick-start.md (#29333) In version 13.0.1 preload process should added to webPreferences. --- docs/tutorial/quick-start.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/tutorial/quick-start.md b/docs/tutorial/quick-start.md index 4a0c3bba005a..58cfa0d54193 100644 --- a/docs/tutorial/quick-start.md +++ b/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')