fix(lib): 🐛 Standard embed
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "typebot-js",
|
||||
"version": "2.2.5",
|
||||
"version": "2.2.6",
|
||||
"main": "dist/index.js",
|
||||
"unpkg": "dist/index.umd.min.js",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
|
||||
@@ -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