Merge pull request #16041 from SandPoot/fixing-chat-saving
Fixes chat log saving breaking because of unsupported CSS rules
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user