fix: remove container id

This commit is contained in:
Sabiha Khan 2026-04-08 15:34:50 +05:30
parent df1b3a5b9b
commit 966a943b52

View file

@ -948,15 +948,11 @@
* window.addEventListener('message', (event) => { ... })
*/
function emitMessage(eventType, detail) {
const containerId = state.config.embedMode === 'inline'
? state.config.containerId
: 'dograh-widget';
const message = {
type: eventType,
agentId: state.config.workflowId || null,
token: state.config.token || null,
workflowRunId: state.workflowRunId || null,
containerId: containerId,
...detail
};
window.postMessage(message, '*');