Use httpReferrer and userAgent new names in webview.
This commit is contained in:
parent
488801e244
commit
f1a8c5a1ca
2 changed files with 4 additions and 4 deletions
|
@ -171,10 +171,10 @@ class SrcAttribute extends WebViewAttribute
|
|||
# Navigate to |this.src|.
|
||||
opts = {}
|
||||
httpreferrer = @webViewImpl.attributes[webViewConstants.ATTRIBUTE_HTTPREFERRER].getValue()
|
||||
if httpreferrer then opts.httpreferrer = httpreferrer
|
||||
if httpreferrer then opts.httpReferrer = httpreferrer
|
||||
|
||||
useragent = @webViewImpl.attributes[webViewConstants.ATTRIBUTE_USERAGENT].getValue()
|
||||
if useragent then opts.useragent = useragent
|
||||
if useragent then opts.userAgent = useragent
|
||||
|
||||
guestContents = remote.getGuestWebContents(@webViewImpl.guestInstanceId)
|
||||
guestContents.loadUrl @getValue(), opts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue