MCPcopy Create free account
hub / github.com/chatwoot/chatwoot / dispatchWindowEvent

Function dispatchWindowEvent

app/javascript/shared/helpers/CustomEventHelper.js:12–15  ·  view source on GitHub ↗
({ eventName, data })

Source from the content-addressed store, hash-verified

10};
11
12export const dispatchWindowEvent = ({ eventName, data }) => {
13 const event = createEvent({ eventName, data });
14 window.dispatchEvent(event);
15};

Callers 5

handleBubbleToggleFunction · 0.90
IFrameHelper.jsFile · 0.90
onEventFunction · 0.90
postbackFunction · 0.90

Calls 1

createEventFunction · 0.85

Tested by

no test coverage detected