diff --git a/js/relayManager.js b/js/relayManager.js index 1e37511a..7f2cded3 100644 --- a/js/relayManager.js +++ b/js/relayManager.js @@ -198,7 +198,7 @@ function resolveEntryInput(entry) { } function getTestRelayOverrides() { - if (typeof window === "undefined") return null; + if (typeof window === "undefined" || !window.location) return null; const params = new URLSearchParams(window.location.search); const paramRelays = params.get("__testRelays__");