]> khamidou — GitHub mirrors - electron.git/commitdiff
Add documentation
authorPaul Betts <paul@paulbetts.org>
Wed, 6 May 2015 05:08:39 +0000 (22:08 -0700)
committerPaul Betts <paul@paulbetts.org>
Tue, 19 May 2015 21:27:15 +0000 (14:27 -0700)
docs/api/web-view-tag.md

index 89ae678b3c4679a6bd802d502104b68f85ce6647..3e008a5db2582ae26eacb9c6c68c3fa766f705aa 100644 (file)
@@ -112,6 +112,14 @@ after this script has done execution.
 
 Sets the referrer URL for the guest page.
 
+### useragent
+
+```html
+<webview src="https://www.github.com/" useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko"></webview>
+```
+
+Sets the user agent for the guest page before the page is navigated to. Once the page is loaded, use the `setUserAgent` method to change the user agent.
+
 ### disablewebsecurity
 
 ```html