dot-store-message
Advanced tools
Comparing version 2.4.9 to 2.6.2
@@ -29,3 +29,3 @@ "use strict"; | ||
_regenerator.default.mark(function _callee(options) { | ||
var divId, meta, op, prop, value, valid, message, el, target; | ||
var divId, meta, op, prop, value, iframe, valid, message, el, target; | ||
return _regenerator.default.wrap(function _callee$(_context) { | ||
@@ -36,6 +36,7 @@ while (1) { | ||
divId = options.divId, meta = options.meta, op = options.op, prop = options.prop, value = options.value; | ||
valid = value && !value.dfp; | ||
iframe = store.getSync("".concat(key, ".").concat(divId)); | ||
valid = iframe && !iframe.dfp; | ||
if (!(!valid || meta.fromWindow)) { | ||
_context.next = 4; | ||
_context.next = 5; | ||
break; | ||
@@ -46,3 +47,3 @@ } | ||
case 4: | ||
case 5: | ||
message = { | ||
@@ -55,2 +56,19 @@ dotStore: true, | ||
el = document.getElementById(divId); | ||
if (!(el && !el.firstChild)) { | ||
_context.next = 9; | ||
break; | ||
} | ||
return _context.abrupt("return"); | ||
case 9: | ||
if (!(!el && window.parent == window)) { | ||
_context.next = 11; | ||
break; | ||
} | ||
return _context.abrupt("return"); | ||
case 11: | ||
target = el ? el.firstChild.contentWindow : window.parent; | ||
@@ -62,3 +80,3 @@ | ||
case 8: | ||
case 13: | ||
case "end": | ||
@@ -65,0 +83,0 @@ return _context.stop(); |
{ | ||
"name": "dot-store-message", | ||
"version": "2.4.9", | ||
"version": "2.6.2", | ||
"description": "Store sync using window.postMessage", | ||
@@ -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
8422
87