2
0

fix(lib): 🐛 Standard embed

This commit is contained in:
Baptiste Arnaud
2022-05-16 16:16:40 -07:00
parent 0f38141eb1
commit c9b3b047dc
4 changed files with 5 additions and 5 deletions

View File

@@ -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",

View File

@@ -5,6 +5,7 @@ export const createIframeContainer = (
params: IframeParams
): HTMLIFrameElement => {
const iframe = createIframe({ ...params, loadWhenVisible: true })
iframe.style.display = 'none'
return iframe
}

View File

@@ -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
}