update condition to check for null

This commit is contained in:
Vipra 2023-08-01 11:55:02 +02:00 committed by Jasmin
parent 085b0ad226
commit cc6d473036

View file

@ -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;