Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 01f10bb

Browse files
author
Daniel Brain
committed
Upgrade cross-domain-utils
1 parent 2f092c9 commit 01f10bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
},
8282
"dependencies": {
8383
"cross-domain-safe-weakmap": "^1.0.1",
84-
"cross-domain-utils": "^1.0.1",
84+
"cross-domain-utils": "^2.0.0",
8585
"zalgo-promise": "^1.0.3"
8686
}
8787
}

src/drivers/listeners.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function getRequestListener({ name, win, domain } : { name : string, win
9090

9191
if (winListeners[__DOMAIN_REGEX__]) {
9292
for (let { regex, listener } of winListeners[__DOMAIN_REGEX__]) {
93-
if (matchDomain(regex, domain)) {
93+
if (domain && matchDomain(regex, domain)) {
9494
return listener;
9595
}
9696
}

0 commit comments

Comments
 (0)