summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-12-07 20:16:55 -0300
committerHarrison Healey <harrisonmhealey@gmail.com>2016-12-07 18:16:55 -0500
commitf52d5811aa46f3e953686328004a36eccdfea08c (patch)
tree0c762dc9b975ab16ce99fc984fd1cec14e980310 /webapp/utils
parent53cd54471044cff18d1a5b9e88b1e1d917684541 (diff)
downloadchat-f52d5811aa46f3e953686328004a36eccdfea08c.tar.gz
chat-f52d5811aa46f3e953686328004a36eccdfea08c.tar.bz2
chat-f52d5811aa46f3e953686328004a36eccdfea08c.zip
PLT-4868 Fix Firefox: Javascript error when selecting a theme (#4731)
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/utils.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index 7d7cc3583..b0eca9d55 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -620,7 +620,9 @@ export function applyTheme(theme) {
changeCss('.app__body .sidebar--right', 'color:' + theme.centerChannelColor);
changeCss('.app__body .search-help-popover .search-autocomplete__item:hover, .app__body .modal .settings-modal .settings-table .settings-content .appearance-section .theme-elements__body', 'background:' + changeOpacity(theme.centerChannelColor, 0.05));
changeCss('.app__body .search-help-popover .search-autocomplete__item.selected', 'background:' + changeOpacity(theme.centerChannelColor, 0.15));
- changeCss('body.app__body ::-webkit-scrollbar-thumb', 'background:' + changeOpacity(theme.centerChannelColor, 0.4), 1);
+ if (!UserAgent.isFirefox() && !UserAgent.isInternetExplorer() && !UserAgent.isEdge()) {
+ changeCss('body.app__body ::-webkit-scrollbar-thumb', 'background:' + changeOpacity(theme.centerChannelColor, 0.4), 1);
+ }
changeCss('body', 'scrollbar-arrow-color:' + theme.centerChannelColor);
changeCss('.app__body .post-create__container .post-create-body .btn-file svg, .app__body .post.post--compact .post-image__column .post-image__details svg, .app__body .modal .about-modal .about-modal__logo svg, .app__body .post .post__img svg', 'fill:' + theme.centerChannelColor);
changeCss('.app__body .scrollbar--horizontal, .app__body .scrollbar--vertical', 'background:' + changeOpacity(theme.centerChannelColor, 0.5));