fix premature setting of "checked" attribute

This commit is contained in:
ItsVipra 2023-07-10 16:08:19 +02:00
parent 8d5e157312
commit e579c21337

View file

@ -120,13 +120,14 @@ function onTootIntersection(observerentries) {
waitForElementRemoved(ArticleElement, ".protoots-proplate", () => {
ArticleElement.removeAttribute("protoots-checked");
});
}
if (ArticleElement.getAttribute("protoots-type") == "conversation") {
waitForElement(ArticleElement, ".conversation__content__names", () =>
addProplate(ArticleElement),
);
} else {
waitForElement(ArticleElement, ".display-name", () => addProplate(ArticleElement));
if (ArticleElement.getAttribute("protoots-type") == "conversation") {
waitForElement(ArticleElement, ".conversation__content__names", () =>
addProplate(ArticleElement),
);
} else {
waitForElement(ArticleElement, ".display-name", () => addProplate(ArticleElement));
}
}
}
}