Merge pull request #9239 from pfrazee/patch-1
Make note about sync webview calls in docs
This commit is contained in:
commit
d1691e0a37
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ rendered.
|
||||||
Unlike an `iframe`, the `webview` runs in a separate process than your
|
Unlike an `iframe`, the `webview` runs in a separate process than your
|
||||||
app. It doesn't have the same permissions as your web page and all interactions
|
app. It doesn't have the same permissions as your web page and all interactions
|
||||||
between your app and embedded content will be asynchronous. This keeps your app
|
between your app and embedded content will be asynchronous. This keeps your app
|
||||||
safe from the embedded content.
|
safe from the embedded content. **Note:** Most methods called on the
|
||||||
|
webview from the host page require a syncronous call to the main process.
|
||||||
|
|
||||||
For security purposes, `webview` can only be used in `BrowserWindow`s that have
|
For security purposes, `webview` can only be used in `BrowserWindow`s that have
|
||||||
`nodeIntegration` enabled.
|
`nodeIntegration` enabled.
|
||||||
|
|
Loading…
Reference in a new issue