diff --git a/docs/tutorial/process-model.md b/docs/tutorial/process-model.md index f8b334b88c0e9..26f5d99c8e884 100644 --- a/docs/tutorial/process-model.md +++ b/docs/tutorial/process-model.md @@ -148,7 +148,9 @@ A preload script can be attached to the main process in the `BrowserWindow` cons const { BrowserWindow } = require('electron') //... const win = new BrowserWindow({ - preload: 'path/to/preload.js' + webPreferences: { + preload: 'path/to/preload.js' + } }) //... ```