Make note about sync webview calls in docs

This commit is contained in:
Paul Frazee 2017-04-20 14:02:41 -05:00 committed by GitHub
parent a004cada7c
commit 3068d7a43e

View file

@ -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, however, that 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.