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 botName = pathParts[1] || 'default';
|
||||
|
||||
// Bots where chat should be maximized by default
|
||||
const botsWithMaximizedChat = ['cristo', 'salesianos'];
|
||||
|
||||
// Auto-open Chat window maximized (only for configured bots)
|
||||
if (window.wm && botsWithMaximizedChat.includes(botName)) {
|
||||
// Auto-open Chat window maximized for all bots
|
||||
try {
|
||||
const response = await fetch("/suite/partials/chat.html");
|
||||
if (response.ok) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue