From 3a81a5224d74c2fbd7715ddde2ec81fab105910e Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Tue, 5 May 2015 16:25:05 -0700 Subject: [PATCH] Set up a class for it in web-view-attributes --- atom/renderer/lib/web-view/web-view-attributes.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atom/renderer/lib/web-view/web-view-attributes.coffee b/atom/renderer/lib/web-view/web-view-attributes.coffee index de370e124952..34304103ebbb 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) ->