From 062eb06f03b6ad3e67b51c12dbc4b6026430435c Mon Sep 17 00:00:00 2001 From: Juan Cazala Date: Sat, 9 Sep 2023 16:43:39 -0300 Subject: [PATCH] fix: location not defined --- packages/@dcl/inspector/src/lib/logic/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@dcl/inspector/src/lib/logic/config.ts b/packages/@dcl/inspector/src/lib/logic/config.ts index 862e3a67d..210aef873 100644 --- a/packages/@dcl/inspector/src/lib/logic/config.ts +++ b/packages/@dcl/inspector/src/lib/logic/config.ts @@ -11,7 +11,7 @@ export type GlobalWithConfig = typeof globalThis & { export function getConfig(): InspectorConfig { const config = (globalThis as GlobalWithConfig).InspectorConfig - const params = new URLSearchParams(location ? location.search : '') + const params = new URLSearchParams(globalThis?.location?.search || '') return { dataLayerRpcWsUrl: params.get('ws') || params.get('dataLayerRpcWsUrl') || config?.dataLayerRpcWsUrl || null, dataLayerRpcParentUrl: