Skip to content

Commit

Permalink
Upgrade cross-domain-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Brain committed Oct 11, 2017
1 parent 2f092c9 commit 01f10bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
},
"dependencies": {
"cross-domain-safe-weakmap": "^1.0.1",
"cross-domain-utils": "^1.0.1",
"cross-domain-utils": "^2.0.0",
"zalgo-promise": "^1.0.3"
}
}
2 changes: 1 addition & 1 deletion src/drivers/listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function getRequestListener({ name, win, domain } : { name : string, win

if (winListeners[__DOMAIN_REGEX__]) {
for (let { regex, listener } of winListeners[__DOMAIN_REGEX__]) {
if (matchDomain(regex, domain)) {
if (domain && matchDomain(regex, domain)) {
return listener;
}
}
Expand Down

0 comments on commit 01f10bb

Please # to comment.