]> khamidou — GitHub mirrors - electron.git/commitdiff
Set up a class for it in web-view-attributes
authorPaul Betts <paul@paulbetts.org>
Tue, 5 May 2015 23:25:05 +0000 (16:25 -0700)
committerPaul Betts <paul@paulbetts.org>
Tue, 19 May 2015 21:27:14 +0000 (14:27 -0700)
atom/renderer/lib/web-view/web-view-attributes.coffee

index de370e124952f9102dbcb4d06458a531cadce6eb..34304103ebbb8215ae428e4ddd8e57e6c95366b4 100644 (file)
@@ -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) ->