Improving chat functionality significantly throughout the application.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
// static/js/eveai-sdk.js
|
||||
class EveAI {
|
||||
constructor(tenantId, apiKey, domain) {
|
||||
constructor(tenantId, apiKey, domain, language) {
|
||||
this.tenantId = tenantId;
|
||||
this.apiKey = apiKey;
|
||||
this.domain = domain;
|
||||
this.language = language;
|
||||
|
||||
console.log('EveAI constructor:', { tenantId, apiKey, domain });
|
||||
}
|
||||
@@ -17,10 +18,12 @@ class EveAI {
|
||||
chatWidget.setAttribute('tenant-id', this.tenantId);
|
||||
chatWidget.setAttribute('api-key', this.apiKey);
|
||||
chatWidget.setAttribute('domain', this.domain);
|
||||
chatWidget.setAttribute('language', this.language);
|
||||
console.log('Attributes set in chat widget:', {
|
||||
tenantId: chatWidget.getAttribute('tenant-id'),
|
||||
apiKey: chatWidget.getAttribute('api-key'),
|
||||
domain: chatWidget.getAttribute('domain')
|
||||
domain: chatWidget.getAttribute('domain'),
|
||||
language: chatWidget.getAttribute('language')
|
||||
});
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user