The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/lib/utils/fireGlobalEvent.ts

13 lines
463 B

import { fireGlobalEventBase } from './fireGlobalEventBase';
import { settings } from '../settings';
export const fireGlobalEvent = (eventName: string, detail?: unknown): void => {
const dispatchIframeMessage = fireGlobalEventBase(eventName, detail);
const enabled = settings.peek('Iframe_Integration_send_enable');
if (enabled === undefined) {
return;
}
dispatchIframeMessage(enabled, settings.peek('Iframe_Integration_send_target_origin') ?? '*');
};