cross-domain-events
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -19,3 +19,3 @@ (function (win, events) { | ||
} | ||
if (!parsedData || parsedData.__xde !== true) { | ||
@@ -68,5 +68,7 @@ return; | ||
validateName(name); | ||
if (otherWindow && otherWindow.contentWindow) { | ||
otherWindow = otherWindow.contentWindow; | ||
} | ||
try { | ||
if (otherWindow && otherWindow.contentWindow) { | ||
otherWindow = otherWindow.contentWindow; | ||
} | ||
} catch(e) {} | ||
if ( !otherWindow || !otherWindow.postMessage ) { | ||
@@ -73,0 +75,0 @@ throw new TypeError('otherWindow does not support postMessage'); |
{ | ||
"name": "cross-domain-events", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Event-like api for postMessage to send objects between cross-domain frames", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
18007
373