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(api) fix parsing API ID

Saúl Ibarra Corretgé50515e01434c
diff --git a/modules/API/constants.js b/modules/API/constants.js
index 6330c723b6..b35a0157e4 100644
--- a/modules/API/constants.js
+++ b/modules/API/constants.js
@@ -8,8 +8,15 @@ import { parseURLParams } from '../../react/features/base/util/parseURLParams';
/**
* JitsiMeetExternalAPI id - unique for a webpage.
+ * TODO: This shouldn't be computed here.
*/
-export const API_ID = parseURLParams(window.location).jitsi_meet_external_api_id;
+let _apiID;
+
+try {
+ _apiID = parseURLParams(window.location).jitsi_meet_external_api_id;
+} catch (_) { /* Ignore. */ }
+
+export const API_ID = _apiID;
/**
* The payload name for the datachannel/endpoint text message event.