From: Paul Betts Date: Tue, 5 May 2015 23:25:05 +0000 (-0700) Subject: Set up a class for it in web-view-attributes X-Git-Tag: v0.26.1~21^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3a81a5224d74c2fbd7715ddde2ec81fab105910e;p=electron.git Set up a class for it in web-view-attributes --- diff --git a/atom/renderer/lib/web-view/web-view-attributes.coffee b/atom/renderer/lib/web-view/web-view-attributes.coffee index de370e12..34304103 100644 --- a/atom/renderer/lib/web-view/web-view-attributes.coffee +++ b/atom/renderer/lib/web-view/web-view-attributes.coffee @@ -167,6 +167,11 @@ class HttpReferrerAttribute extends WebViewAttribute constructor: (webViewImpl) -> super webViewConstants.ATTRIBUTE_HTTPREFERRER, webViewImpl +# Attribute specifies HTTP referrer. +class UserAgentAttribute extends WebViewAttribute + constructor: (webViewImpl) -> + super webViewConstants.ATTRIBUTE_HTTPREFERRER, webViewImpl + # Attribute that set preload script. class PreloadAttribute extends WebViewAttribute constructor: (webViewImpl) ->