Add zoomFactor to guest params
This commit is contained in:
parent
fef2f789cd
commit
4754e4aabb
2 changed files with 3 additions and 1 deletions
|
@ -179,6 +179,7 @@ var attachGuest = function (embedder, elementInstanceId, guestInstanceId, params
|
||||||
guestInstanceId: guestInstanceId,
|
guestInstanceId: guestInstanceId,
|
||||||
nodeIntegration: (ref1 = params.nodeintegration) != null ? ref1 : false,
|
nodeIntegration: (ref1 = params.nodeintegration) != null ? ref1 : false,
|
||||||
plugins: params.plugins,
|
plugins: params.plugins,
|
||||||
|
zoomFactor: params.zoomFactor,
|
||||||
webSecurity: !params.disablewebsecurity,
|
webSecurity: !params.disablewebsecurity,
|
||||||
blinkFeatures: params.blinkfeatures
|
blinkFeatures: params.blinkfeatures
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,7 +223,8 @@ var WebViewImpl = (function () {
|
||||||
var attribute, attributeName, css, elementRect, params, ref1
|
var attribute, attributeName, css, elementRect, params, ref1
|
||||||
params = {
|
params = {
|
||||||
instanceId: this.viewInstanceId,
|
instanceId: this.viewInstanceId,
|
||||||
userAgentOverride: this.userAgentOverride
|
userAgentOverride: this.userAgentOverride,
|
||||||
|
zoomFactor: webFrame.getZoomFactor()
|
||||||
}
|
}
|
||||||
ref1 = this.attributes
|
ref1 = this.attributes
|
||||||
for (attributeName in ref1) {
|
for (attributeName in ref1) {
|
||||||
|
|
Loading…
Reference in a new issue