2
0

feat(editor): Add a Help button

This commit is contained in:
Baptiste Arnaud
2022-06-18 08:45:51 +02:00
parent e4ad23c2b9
commit 5ef89f7501
8 changed files with 50 additions and 18 deletions

View File

@ -89,7 +89,8 @@ export const getBubbleActions = (
): BubbleActions => {
const existingBubbleElement =
bubbleElement ??
(document.querySelector('#typebot-bubble') as HTMLDivElement)
(document.querySelector('#typebot-bubble') as HTMLDivElement | undefined)
if (!existingBubbleElement) return { close: () => {}, open: () => {} }
const existingIframeElement =
iframeElement ??
(existingBubbleElement.querySelector(