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