2
0

🧑‍💻 Better Typebot import in vanilla JS sites

This commit is contained in:
Baptiste Arnaud
2023-02-21 10:05:24 +01:00
parent 907cad8050
commit ab43d809c3
4 changed files with 36 additions and 30 deletions

View File

@ -1,5 +1,10 @@
import { registerWebComponents } from './register'
import { injectTypebotInWindow } from './window'
import { parseTypebot, injectTypebotInWindow } from './window'
registerWebComponents()
injectTypebotInWindow()
const typebot = parseTypebot()
injectTypebotInWindow(typebot)
export default typebot