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/packages/rocketchat-ui/client/lib/fireEvent.js

11 lines
326 B

window.fireGlobalEvent = (eventName, params) => {
window.dispatchEvent(new CustomEvent(eventName, {detail: params}));
if (RocketChat.settings.get('Iframe_Integration_send_enable') === true) {
parent.postMessage({
eventName,
data: params
}, RocketChat.settings.get('Iframe_Integration_send_target_origin'));
}
};