Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 0c36d26

Browse files
Update renderer.js
1 parent 95e3eeb commit 0c36d26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tgui/packages/tgui-panel/chat/renderer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,9 @@ class ChatRenderer {
498498
const cssRules = styleSheets[i].cssRules;
499499
for (let i = 0; i < cssRules.length; i++) {
500500
const rule = cssRules[i];
501-
cssText += rule.cssText + '\n';
501+
if (rule && typeof rule.cssText === 'string') {
502+
cssText += rule.cssText + '\n';
503+
}
502504
}
503505
}
504506
cssText += 'body, html { background-color: #141414 }\n';

0 commit comments

Comments
 (0)