fix(lib): 🐛 Standard embed
This commit is contained in:
@ -5,6 +5,7 @@ export const createIframeContainer = (
|
||||
params: IframeParams
|
||||
): HTMLIFrameElement => {
|
||||
const iframe = createIframe({ ...params, loadWhenVisible: true })
|
||||
iframe.style.display = 'none'
|
||||
return iframe
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,6 @@ export const createIframe = ({
|
||||
iframe.classList.add('typebot-iframe')
|
||||
const { onNewVariableValue, onVideoPlayed } = iframeParams
|
||||
listenForTypebotMessages({ onNewVariableValue, onVideoPlayed })
|
||||
iframe.style.display = 'none'
|
||||
return iframe
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user