Skip to content

Commit

Permalink
docs: document webview's nodeintegrationinsubframes
Browse files Browse the repository at this point in the history
  • Loading branch information
brenca committed Mar 8, 2019
1 parent 6e5c44e commit 5a34fb4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/api/webview-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ integration and can use node APIs like `require` and `process` to access low
level system resources. Node integration is disabled by default in the guest
page.

### `nodeintegrationinsubframes`

```html
<webview src="http://www.google.com/" nodeintegrationinsubframes></webview>
```

Experimental option for enabling NodeJS support in sub-frames such as iframes
inside the `webview`. All your preloads will load for every iframe, you can
use `process.isMainFrame` to determine if you are in the main frame or not.
This option is disabled by default in the guest page.

### `enableremotemodule`

```html
Expand Down

0 comments on commit 5a34fb4

Please sign in to comment.