fix(jaas) redirect to about blank when close meeting opened in iframe

This commit is contained in:
bogdandarie 2022-10-17 10:32:18 +03:00 committed by GitHub
parent 495957104c
commit 1279c5b0da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import {
parseURIString,
parseURLParams
} from '../base/util';
import { inIframe } from '../base/util/iframeUtils';
import { isVpaasMeeting } from '../jaas/functions';
import {
NOTIFICATION_TIMEOUT_TYPE,
@ -164,7 +165,13 @@ export function maybeRedirectToWelcomePage(options: Object = {}) {
// if close page is enabled redirect to it, without further action
if (enableClosePage) {
if (isVpaasMeeting(getState())) {
const isOpenedInIframe = inIframe();
if (isOpenedInIframe) {
window.location = 'about:blank';
} else {
dispatch(redirectToStaticPage('/'));
}
return;
}