mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-10 14:14:19 +00:00
check whether a notification nametag exists
This commit is contained in:
parent
2b198d5bba
commit
e518c4d4bc
1 changed files with 2 additions and 1 deletions
|
@ -331,7 +331,8 @@ async function addProplate(element) {
|
|||
let accountName = getAccountName(accountNameEl, "title");
|
||||
if (!accountName) accountName = accountNameFromURL(getAccountName(accountNameEl, "href"));
|
||||
|
||||
let nametagEl = accountNameEl;
|
||||
let nametagEl = getNametagEl(element, ".notification__display-name");
|
||||
if (!nametagEl) return;
|
||||
|
||||
element.setAttribute("protoots-checked", "true");
|
||||
generateProPlate(statusId, accountName, nametagEl, "notification");
|
||||
|
|
Loading…
Reference in a new issue