Skip to content

Commit

Permalink
Fix node compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
amortemousque committed Apr 14, 2022
1 parent 73ccf32 commit 356c800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/transport/eventBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getEventBridge<T, E>() {
}
}

export function canUseEventBridge(hostname = window.location.hostname): boolean {
export function canUseEventBridge(hostname = getGlobalObject<Window>().location.hostname): boolean {
const bridge = getEventBridge()
return (
!!bridge &&
Expand Down

0 comments on commit 356c800

Please sign in to comment.