2
0

build: add pnpm

This commit is contained in:
Baptiste Arnaud
2022-08-08 08:21:36 +02:00
parent 8c3b5058f1
commit ee338f62dc
183 changed files with 19442 additions and 18364 deletions

View File

@ -13,10 +13,8 @@ export const LiteBadge = () => {
const observer = new MutationObserver(function (mutations_list) {
mutations_list.forEach(function (mutation) {
mutation.removedNodes.forEach(function (removed_node) {
if ((removed_node as HTMLElement).id == 'lite-badge') {
console.log('litebadge has been removed')
if ((removed_node as HTMLElement).id == 'lite-badge')
container.append(liteBadge.current as Node)
}
})
})
})

View File

@ -21,7 +21,7 @@ import {
} from 'models'
import { Log } from 'db'
import { LiteBadge } from './LiteBadge'
import { env, isEmpty } from 'utils'
import { getViewerUrl, isEmpty } from 'utils'
export type TypebotViewerProps = {
typebot: PublicTypebot
@ -41,7 +41,7 @@ export type TypebotViewerProps = {
export const TypebotViewer = ({
typebot,
apiHost = env('VIEWER_URL')?.split(',')[0],
apiHost = getViewerUrl(),
isPreview = false,
isLoading = false,
style,