Fix Unread posts indicator and mention badge don't match theme color (#4678)

This commit is contained in:
enahum
2016-11-30 17:45:05 -03:00
committed by Harrison Healey
parent 165ad0d4f7
commit a804f63c32

View File

@@ -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) {