botpress.onEvent( function(event) { ...
# 🌎general
b
botpress.onEvent( function(event) { if (event.type === 'LIFECYCLE.LOADED') { const currentUrl = window.location.href; const botpress = (window as any).botpressWebChat; botpress.sendEvent({ type: 'show' }); botpress.sendPayload({ type: 'trigger', payload: { tenantUrl: currentUrl } }); console.log('Update tenant url for botpress'); } }, ['LIFECYCLE.LOADED'] );
26 Views