diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index 3becd6e2fb..8b70b67a1e 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -350,6 +350,11 @@ export default class MessageComposer extends React.Component { ; } + // Fall back to default highlight color if we can't compute one from the DOM + const highlightColor = document.getElementById('mx_theme_accentColor') ? + window.getComputedStyle(document.getElementById('mx_theme_accentColor')).color : + '#76CFA6'; + const stickers =
{ this.state.stickersContent }