(logs)
| 337 | } |
| 338 | |
| 339 | function updateLogDisplay(logs) { |
| 340 | const logContainer = document.getElementById("log-container"); |
| 341 | logContainer.innerHTML = ""; // Clear previous logs |
| 342 | logs.reverse().forEach((log) => { |
| 343 | const logElement = createLogElement(log); |
| 344 | // logElement.classList.add('log-entry'); |
| 345 | // const clientText = `Client ${log.source.substring(0, 2)}`; |
| 346 | // logElement.textContent = `${new Date(log.timestamp).toLocaleString()}, [${ |
| 347 | // clientText}]: ${log.message}`; |
| 348 | // logElement.style.color = helpers.getCssColorFromHex(log.source); |
| 349 | logContainer.appendChild(logElement); |
| 350 | }); |
| 351 | } |
| 352 | |
| 353 | function updateChatDisplay(chatId, chats) { |
| 354 | log(`Updating chat display for '${chatId}' with ${chats.length} chats`); |
no test coverage detected