Skip to content

Commit b966cb8

Browse files
author
waleedahmedhere
committed
fix: broken JS syntax in widget class
1 parent dbe7acd commit b966cb8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ class SalesChatbot {
169169
// Widget version for embedding
170170
class SalesChatbotWidget {
171171
static init(config = {}) {
172-
this.endpoint = config.endpoint || (window.CHATBOT_API_URL ? window.CHATBOT_API_URL + '/chat' : '/chat');
172+
const defaultConfig = {
173+
endpoint: window.CHATBOT_API_URL ? window.CHATBOT_API_URL + '/chat' : '/chat',
173174
title: 'Sales Assistant 🤖',
174175
subtitle: 'Query previous client meetings',
175176
position: 'bottom-right'

0 commit comments

Comments
 (0)