mustard: notifs.js: Esclude le notifiche filtrate da quelle vive.
This commit is contained in:
parent
e2e93c8c07
commit
7f3d5c3989
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ function markdeleted(notif) {
|
|||
|
||||
function getAliveNotifs(){
|
||||
let notifs = Array.from(document.querySelectorAll("div.notif"));
|
||||
return notifs.filter(n => !(Array.from(n.classList).includes("deleted")))
|
||||
return notifs.filter(n => {
|
||||
let classes = Array.from(n.classList);
|
||||
return !(classes.includes("deleted") || classes.includes("filtered"));
|
||||
})
|
||||
}
|
||||
|
||||
function getAliveCheckboxes() {
|
||||
|
|
Loading…
Reference in a new issue