This commit is contained in:
Oliver
2025-07-26 14:22:14 -03:00
parent a34ccc7aa2
commit 0d6ba0b797
3 changed files with 19 additions and 0 deletions

View File

@@ -90,6 +90,15 @@ If its not the right fit, no worries — well refund you 💸.
});
const data = await response.json();
const statusDiv = document.getElementById('cw-status');
if (data.status) {
statusDiv.innerHTML = data.status;
statusDiv.style.maxHeight = statusDiv.scrollHeight + 'px';
statusDiv.style.padding = '10px';
} else {
statusDiv.style.maxHeight = '0';
statusDiv.style.padding = '0 10px';
}
appendMessage(data.output, 'bot');
} catch (error) {
appendMessage('Fehler beim Verbinden mit dem Server. Bitte versuchen Sie es später erneut.', 'bot');