2
0

📝 Fix iframe's style instruction invalid quotes

Closes #726
This commit is contained in:
Baptiste Arnaud
2023-08-30 13:38:20 +02:00
parent 23b629f82c
commit 90c8c809de

View File

@ -15,7 +15,7 @@ export const IframeSnippet = ({ widthLabel, heightLabel }: Props) => {
const { typebot } = useTypebot()
const src = `${getViewerUrl()}/${typebot?.publicId}`
const code = prettier.format(
`<iframe src="${src}" style="border: none; width='${widthLabel}'; height='${heightLabel}'"></iframe>`,
`<iframe src="${src}" style="border: none; width=${widthLabel}; height=${heightLabel}"></iframe>`,
{ parser: 'html', plugins: [parserHtml] }
)