mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-26 22:25:33 +08:00
Add WebContents.setUserAgent
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user