fix: Auto-open chat maximized for all bots in desktop.html

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-03-19 15:14:02 -03:00
parent ed90d20bd9
commit b2d320e767

View file

@ -797,11 +797,8 @@
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']; if (window.wm) {
// Auto-open Chat window maximized (only for configured bots)
if (window.wm && botsWithMaximizedChat.includes(botName)) {
try { try {
const response = await fetch( const response = await fetch(
"/suite/partials/chat.html", "/suite/partials/chat.html",