mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Set up a class for it in web-view-attributes
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user