From a804f63c32f70dbb5ff64d446cff12f8baf39ceb Mon Sep 17 00:00:00 2001
From: enahum <nahumhbl@gmail.com>
Date: Wed, 30 Nov 2016 17:45:05 -0300
Subject: Fix Unread posts indicator and mention badge don't match theme color
 (#4678)

---
 webapp/utils/utils.jsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'webapp/utils/utils.jsx')

diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index e1ce4e81c..f37ddd73c 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -705,10 +705,7 @@ export function changeCss(className, classValue) {
     if (className.indexOf('@media') >= 0) {
         mediaQuery = '}';
     }
-    if (styleSheet.cssRules.length > 0) {
-        styleSheet.deleteRule(0);
-    }
-    styleSheet.insertRule(className + '{' + classValue + '}' + mediaQuery, 0);
+    styleSheet.insertRule(className + '{' + classValue + '}' + mediaQuery, styleSheet.cssRules.length);
 }
 
 export function updateCodeTheme(userTheme) {
-- 
cgit v1.2.3-1-g7c22

