reference menion counts from LHS only (#990)
This commit is contained in:
parent
241fe8db62
commit
694e6554e0
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue