Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat: Adds an option to disable iframeAPI. (#13235)
Дамян Минков57f9ea286517
diff --git a/react/features/app/actions.web.ts b/react/features/app/actions.web.tsindex b5859fd86f..c696f69dcd 100644--- a/react/features/app/actions.web.ts+++ b/react/features/app/actions.web.ts@@ -129,6 +129,14 @@ export function appNavigate(uri?: string) {dispatch(setLocationURL(locationURL));dispatch(setConfig(config));++ if (inIframe() && getState()['features/base/config'].disableIframeAPI) {+ // in case iframeAPI is disabled redirect to the promotional page+ dispatch(redirectToStaticPage('static/close3.html', `#jitsi_meet_external_api_id=${API_ID}`));++ return;+ }+dispatch(setRoom(room));};}diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.tsindex fbada63788..cf59dc0354 100644--- a/react/features/base/config/configType.ts+++ b/react/features/base/config/configType.ts@@ -253,6 +253,7 @@ export interface IConfig {disableDeepLinking?: boolean;disableFilmstripAutohiding?: boolean;disableFocus?: boolean;+ disableIframeAPI?: boolean;disableIncomingMessageSound?: boolean;disableInitialGUM?: boolean;disableInviteFunctions?: boolean;