Skip to content

Commit

Permalink
add allowtransparency="true"
Browse files Browse the repository at this point in the history
  • Loading branch information
mavisakalyan committed Dec 1, 2024
1 parent 7de7e3b commit 6330f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/chat/components/agents/profile/embedModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function EmbedModal({agent, close}: {agent: any, close: () => voi
const generateEmbedCode = () => {
const defaultWidth = 300;
const defaultHeight = 400;
const embedCode = `<iframe src="${window.location.origin}/embed/${agent.id}" width="${defaultWidth}" height="${defaultHeight}" style={{ position: 'fixed', bottom: 0, right: 0, zIndex: 9999, background: 'transparent', border: 0, }}></iframe>`;
const embedCode = `<iframe allowtransparency="true" src="${window.location.origin}/embed/${agent.id}" width="${defaultWidth}" height="${defaultHeight}" style={{ position: 'fixed', bottom: 0, right: 0, zIndex: 9999, background: 'transparent', border: 0, }}></iframe>`;
setEmbedCode(embedCode);
};

Expand Down

0 comments on commit 6330f54

Please sign in to comment.