dot-store-iframe
Advanced tools
Comparing version 2.6.13 to 2.6.14
@@ -28,3 +28,3 @@ "use strict"; | ||
_regenerator.default.mark(function _callee(options) { | ||
var iframeId, listenValue, store, divId, url, loaded, onLoad, el; | ||
var iframeId, listenValue, store, divId, height, url, width, loaded, onLoad, el; | ||
return _regenerator.default.wrap(function _callee$(_context) { | ||
@@ -36,3 +36,3 @@ while (1) { | ||
if (listenValue.dfp) { | ||
if (!listenValue.dfp) { | ||
_context.next = 3; | ||
@@ -45,3 +45,3 @@ break; | ||
case 3: | ||
divId = listenValue.divId, url = listenValue.url; | ||
divId = listenValue.divId, height = listenValue.height, url = listenValue.url, width = listenValue.width; | ||
loaded = "iframes.".concat(iframeId, ".loaded"); | ||
@@ -56,3 +56,4 @@ | ||
el.frameBorder = 0; | ||
el.height = 0; | ||
el.height = height ? height : 0; | ||
el.width = width ? width : 0; | ||
el.src = addDebug({ | ||
@@ -65,3 +66,3 @@ store: store, | ||
case 13: | ||
case 14: | ||
case "end": | ||
@@ -134,2 +135,6 @@ return _context.stop(); | ||
if (!el) { | ||
return; | ||
} | ||
if (height) { | ||
@@ -136,0 +141,0 @@ el.height = height; |
{ | ||
"name": "dot-store-iframe", | ||
"version": "2.6.13", | ||
"version": "2.6.14", | ||
"description": "Iframe controller integration for dot-store", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31671
410