diff --git a/react/features/base/util/parseURLParams.ts b/react/features/base/util/parseURLParams.ts index e02d6086ce..c420e9ec5c 100644 --- a/react/features/base/util/parseURLParams.ts +++ b/react/features/base/util/parseURLParams.ts @@ -25,6 +25,10 @@ export function parseURLParams( url: URL | string, dontParse = false, source = 'hash') { + if (!url) { + return {}; + } + if (typeof url === 'string') { // eslint-disable-next-line no-param-reassign url = new URL(url);