Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Check closest parent because their ajax response doesnt match
Browse files Browse the repository at this point in the history
  • Loading branch information
muan committed Mar 22, 2022
1 parent d526a78 commit c765396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ async function fetchFollowees() {
async function addMoreSpecificIdentifiers(list) {
const followees = await getFolloweeList()
for (const record of list) {
if (!record.target.classList.contains('news') && record.target.id !== 'panel-1') continue
const closestParent = record.target.closest('.news, #panel-1')
if (!closestParent) continue

for (const eventItem of record.target.querySelectorAll(eventClasses)) {
if (!(eventItem instanceof HTMLElement)) continue
Expand Down

0 comments on commit c765396

Please sign in to comment.