Skip to content

Commit

Permalink
fixes night#3676
Browse files Browse the repository at this point in the history
  • Loading branch information
night committed Dec 9, 2019
1 parent 0b8d7bf commit 8d1f164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/modules/chat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ class ChatModule {
$from.text(nickname);
}

const messageStyle = $element.attr('style');
if (messageStyle && messageStyle.includes('color:')) {
if ($element[0].style.color) {
$element.css('color', color);
}

Expand Down
3 changes: 1 addition & 2 deletions src/modules/vod_chat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ class VODChatModule {
const newColor = chat.calculateColor(mockUser.color);
$username.css('color', newColor);

const messageStyle = $element.attr('style');
if (messageStyle && messageStyle.includes('color:')) {
if ($element[0].style.color) {
$element.css('color', newColor);
}
}
Expand Down

0 comments on commit 8d1f164

Please sign in to comment.