Better saving of chat logs (#55898)

## About The Pull Request

Makes it so that it'll only save the messages that are visible in the current tab. ie, the logs will respect the types of messages in the current tab.

## Why It's Good For The Game

Because when you just want admin messages or combat logs, it's annoying to have to sort through literally everything else to get them.
This commit is contained in:
Seris02
2021-01-03 21:48:47 -05:00
committed by GitHub
parent 1670c8b672
commit 96ceda031b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -449,7 +449,7 @@ class ChatRenderer {
cssText += 'body, html { background-color: #141414 }\n';
// Compile chat log as HTML text
let messagesHtml = '';
for (let message of this.messages) {
for (let message of this.visibleMessages) {
if (message.node) {
messagesHtml += message.node.outerHTML + '\n';
}
File diff suppressed because one or more lines are too long