Add WebContents.setUserAgent

This commit is contained in:
Cheng Zhao 2014-10-24 20:57:44 +08:00
parent 07a8a50861
commit 1f08d50e98
4 changed files with 15 additions and 2 deletions

View file

@ -606,6 +606,12 @@ Navigates to the specified offset from the "current entry".
Whether the renderer process has crashed.
### WebContents.setUserAgent(userAgent)
* `userAgent` String
Overrides the user agent for this page.
### WebContents.executeJavaScript(code)
* `code` String