build: add pnpm
This commit is contained in:
@ -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)
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user