try this Q
This commit is contained in:
parent
cdcf6937b8
commit
adb42b5be5
|
@ -478,8 +478,8 @@ Core.prototype.injectColoredText = function() {
|
||||||
const messageContent = props.childrenMessageContent;
|
const messageContent = props.childrenMessageContent;
|
||||||
const roleColor = settingsCookie["bda-gs-7"] ? messageContent.props.message.colorString || "" : "";
|
const roleColor = settingsCookie["bda-gs-7"] ? messageContent.props.message.colorString || "" : "";
|
||||||
const originalType = messageContent.type.type;
|
const originalType = messageContent.type.type;
|
||||||
props.childrenMessageContent.type.type = function() {
|
messageContent.type.type = function(props) {
|
||||||
const returnValue = originalType(...arguments);
|
const returnValue = originalType(props);
|
||||||
returnValue.props.style = {color: roleColor};
|
returnValue.props.style = {color: roleColor};
|
||||||
return returnValue;
|
return returnValue;
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue