]> khamidou — GitHub mirrors - electron.git/commitdiff
Rename httpreferrer to httpReferrer, useragent to userAgent.
authorHaojian Wu <hokein.wu@gmail.com>
Tue, 9 Jun 2015 01:27:57 +0000 (09:27 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 9 Jun 2015 02:10:29 +0000 (10:10 +0800)
atom/browser/api/atom_api_web_contents.cc
docs/api/browser-window.md

index 3d925b839918e82afc49a2884035b9212d9cb50f..848b243f317eb47064a4603c99186dfe37d52c5a 100644 (file)
@@ -430,12 +430,12 @@ void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) {
   content::NavigationController::LoadURLParams params(url);
 
   GURL http_referrer;
-  if (options.Get("httpreferrer", &http_referrer))
+  if (options.Get("httpReferrer", &http_referrer))
     params.referrer = content::Referrer(http_referrer.GetAsReferrer(),
                                         blink::WebReferrerPolicyDefault);
 
   std::string user_agent;
-  if (options.Get("useragent", &user_agent))
+  if (options.Get("userAgent", &user_agent))
     SetUserAgent(user_agent);
 
   params.transition_type = ui::PAGE_TRANSITION_TYPED;
index 768200dc5e402bffd586681184dd16196b792a78..e60a7d2279959b0ba63628765a2e4a4d2b35fe5b 100644 (file)
@@ -782,8 +782,8 @@ Emitted when the WebContents is destroyed.
 
 * `url` URL
 * `options` URL
-  * `httpreferrer` String - A HTTP Referer url
-  * `useragent` String - A user agent originating the request
+  * `httpReferrer` String - A HTTP Referer url
+  * `userAgent` String - A user agent originating the request
 
 Loads the `url` in the window, the `url` must contains the protocol prefix,
 e.g. the `http://` or `file://`.