Move "nodeintegration" and "plugins" to web-view-attributes
This commit is contained in:
parent
68381e1b76
commit
9d23cce2b6
3 changed files with 3 additions and 3 deletions
|
@ -87,7 +87,7 @@ attachGuest = (embedder, elementInstanceId, guestInstanceId, params) ->
|
||||||
destroyGuest oldGuestInstanceId
|
destroyGuest oldGuestInstanceId
|
||||||
|
|
||||||
webViewManager.addGuest guestInstanceId, elementInstanceId, embedder, guest,
|
webViewManager.addGuest guestInstanceId, elementInstanceId, embedder, guest,
|
||||||
nodeIntegration: params.nodeIntegration
|
nodeIntegration: params.nodeintegration
|
||||||
plugins: params.plugins
|
plugins: params.plugins
|
||||||
preloadUrl: params.preload ? ''
|
preloadUrl: params.preload ? ''
|
||||||
|
|
||||||
|
|
|
@ -170,6 +170,8 @@ WebViewImpl::setupWebViewAttributes = ->
|
||||||
@attributes[webViewConstants.ATTRIBUTE_PARTITION] = new PartitionAttribute(this)
|
@attributes[webViewConstants.ATTRIBUTE_PARTITION] = new PartitionAttribute(this)
|
||||||
@attributes[webViewConstants.ATTRIBUTE_SRC] = new SrcAttribute(this)
|
@attributes[webViewConstants.ATTRIBUTE_SRC] = new SrcAttribute(this)
|
||||||
@attributes[webViewConstants.ATTRIBUTE_HTTPREFERRER] = new HttpReferrerAttribute(this)
|
@attributes[webViewConstants.ATTRIBUTE_HTTPREFERRER] = new HttpReferrerAttribute(this)
|
||||||
|
@attributes[webViewConstants.ATTRIBUTE_NODEINTEGRATION] = new BooleanAttribute(webViewConstants.ATTRIBUTE_NODEINTEGRATION, this)
|
||||||
|
@attributes[webViewConstants.ATTRIBUTE_PLUGINS] = new BooleanAttribute(webViewConstants.ATTRIBUTE_PLUGINS, this)
|
||||||
|
|
||||||
autosizeAttributes = [
|
autosizeAttributes = [
|
||||||
webViewConstants.ATTRIBUTE_MAXHEIGHT
|
webViewConstants.ATTRIBUTE_MAXHEIGHT
|
||||||
|
|
|
@ -180,8 +180,6 @@ class WebViewImpl
|
||||||
params =
|
params =
|
||||||
instanceId: @viewInstanceId
|
instanceId: @viewInstanceId
|
||||||
userAgentOverride: @userAgentOverride
|
userAgentOverride: @userAgentOverride
|
||||||
nodeIntegration: @webviewNode.hasAttribute webViewConstants.ATTRIBUTE_NODEINTEGRATION
|
|
||||||
plugins: @webviewNode.hasAttribute webViewConstants.ATTRIBUTE_PLUGINS
|
|
||||||
for attributeName, attribute of @attributes
|
for attributeName, attribute of @attributes
|
||||||
params[attributeName] = attribute.getValue()
|
params[attributeName] = attribute.getValue()
|
||||||
if @webviewNode.hasAttribute webViewConstants.ATTRIBUTE_PRELOAD
|
if @webviewNode.hasAttribute webViewConstants.ATTRIBUTE_PRELOAD
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue