akute dummheit, timestamp fix

This commit is contained in:
Luke
2021-04-27 01:09:20 +00:00
parent 5c622918c8
commit cd937835c9

View File

@@ -65,10 +65,10 @@ var chatAPI =
if (chatElement === "<li></li>") { if (chatElement === "<li></li>") {
if (chat.input == null || elmnt.scrollTop == elmnt.scrollHeight - elmnt.clientHeight) { if (chat.input == null || elmnt.scrollTop == elmnt.scrollHeight - elmnt.clientHeight) {
chat.container.append("<li>" + "[" + today.toLocaleTimeString('de-DE') + "] " + text + "</li>"); chat.container.append("<li>" + "<span class='timestamp'>[" + today.toLocaleTimeString('de-DE') + "]</span> " + text + "</li>");
elmnt.scrollTop = elmnt.scrollHeight - elmnt.clientHeight; elmnt.scrollTop = elmnt.scrollHeight - elmnt.clientHeight;
} else { } else {
chat.container.append("<li>" + "[" + today.toLocaleTimeString('de-DE') + "] " + text + "</li>"); chat.container.append("<li>" + "<span class='timestamp'>[" + today.toLocaleTimeString('de-DE') + "]</span> " + text + "</li>");
} }
} else { } else {
chat.container.append(chatElement); chat.container.append(chatElement);