mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
fix: remove container id
This commit is contained in:
parent
df1b3a5b9b
commit
966a943b52
1 changed files with 0 additions and 4 deletions
|
|
@ -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, '*');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue