diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index a4b779de295b..5186603fe69e 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -558,6 +558,9 @@ This event can be used to configure `webPreferences` for the `webContents` of a `` before it's loaded, and provides the ability to set settings that can't be set via `` attributes. +**Note:** The specified `preload` script option will be appear as `preloadURL` +(not `preload`) in the `webPreferences` object emitted with this event. + ### Instance Methods #### `contents.loadURL(url[, options])` diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index c912791b7c12..93773596745b 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -147,6 +147,9 @@ When the guest page doesn't have node integration this script will still have access to all Node APIs, but global objects injected by Node will be deleted after this script has finished executing. +**Note:** This option will be appear as `preloadURL` (not `preload`) in +the `webPreferences` specified to the `will-attach-webview` event. + ### `httpreferrer` ```html