mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-10 14:14:19 +00:00
update condition to check for null
This commit is contained in:
parent
085b0ad226
commit
cc6d473036
1 changed files with 2 additions and 2 deletions
|
@ -341,9 +341,9 @@ async function addProplate(element) {
|
|||
if (!accountNameEl) accountNameEl = getAccountNameEl(element, ".status__display-name");
|
||||
|
||||
let accountName = getAccountName(accountNameEl, "title");
|
||||
if (accountName == "null")
|
||||
if (!accountName) {
|
||||
accountName = accountNameFromURL(getAccountName(accountNameEl, "href"));
|
||||
if (accountName == "null") return;
|
||||
}
|
||||
|
||||
let nametagEl = getNametagEl(element, ".notification__display-name");
|
||||
if (!nametagEl) return;
|
||||
|
|
Loading…
Reference in a new issue