Skip to content

Commit

Permalink
* now allows wildcard responses. Fixed #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo authored and daepark committed Sep 27, 2011
1 parent a34de97 commit 2c5223b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postmessage.js
Expand Up @@ -221,7 +221,7 @@ var NO_JQUERY = {};
var fns = l[msg.type] || [];
for (var i=0,len=fns.length; i<len; i++) {
var o = fns[i];
if (o.origin && e.origin !== o.origin) {
if (o.origin && o.origin != '*' && e.origin !== o.origin) {
console.warn("postmessage message origin mismatch", e.origin, o.origin);
if (msg.errback) {
// notify post message errback
Expand Down

0 comments on commit 2c5223b

Please sign in to comment.