Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(prejoin) Check for valid url for prejoin (#13468)

Horatiu Muresand608cf40f5c6
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);