feat: Auto-open chat maximized for all bots
This commit is contained in:
parent
d7336860f7
commit
215fb8b543
1 changed files with 1 additions and 5 deletions
|
|
@ -595,11 +595,7 @@
|
||||||
const pathParts = window.location.pathname.split('/');
|
const pathParts = window.location.pathname.split('/');
|
||||||
const botName = pathParts[1] || 'default';
|
const botName = pathParts[1] || 'default';
|
||||||
|
|
||||||
// Bots where chat should be maximized by default
|
// Auto-open Chat window maximized for all bots
|
||||||
const botsWithMaximizedChat = ['cristo', 'salesianos'];
|
|
||||||
|
|
||||||
// Auto-open Chat window maximized (only for configured bots)
|
|
||||||
if (window.wm && botsWithMaximizedChat.includes(botName)) {
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch("/suite/partials/chat.html");
|
const response = await fetch("/suite/partials/chat.html");
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue