Merge pull request #16041 from SandPoot/fixing-chat-saving

Fixes chat log saving breaking because of unsupported CSS rules
This commit is contained in:
deathride58
2023-12-12 19:22:58 -05:00
committed by GitHub
+3 -1
View File
@@ -443,7 +443,9 @@ class ChatRenderer {
const cssRules = styleSheets[i].cssRules;
for (let i = 0; i < cssRules.length; i++) {
const rule = cssRules[i];
cssText += rule.cssText + '\n';
if (rule && typeof rule.cssText === 'string') {
cssText += rule.cssText + '\n';
}
}
}
cssText += 'body, html { background-color: #141414 }\n';