mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-10 14:14:19 +00:00
fix premature setting of "checked" attribute
This commit is contained in:
parent
8d5e157312
commit
e579c21337
1 changed files with 7 additions and 6 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue