reference menion counts from LHS only (#990)

This commit is contained in:
Dean Whillier 2019-06-17 05:51:57 -04:00 committed by Sudheer
parent 241fe8db62
commit 694e6554e0

View file

@ -90,7 +90,7 @@ function getUnreadCount() {
}
// mentionCount in sidebar
const elem = document.getElementsByClassName('badge');
const elem = document.querySelectorAll('#sidebar-left .badge');
let mentionCount = 0;
for (let i = 0; i < elem.length; i++) {
if (isElementVisible(elem[i]) && !hasClass(elem[i], 'badge-notify')) {