Skip to content

Commit f93a7b4

Browse files
committed
[docs] Node.js support in webview nwjs#4780
1 parent 0fb98f2 commit f93a7b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/References/webview Tag.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ Add the following permission to the manifest:
3838
}
3939
```
4040

41-
and add 'partition="trusted"' attribute to the webview tag.
41+
and add 'partition="trusted"' attribute to the webview tag.
42+
43+
### Node.js support in webview
44+
45+
To enable Node.js support in WebView, add the `allownw` attribute to the webview tag. Then Node.js will be turned on, no matter it loads local file or remote site. Use this feature with caution because webview is normally supposed to load untrusted contents.

0 commit comments

Comments
 (0)