mirror of
https://github.com/ItsVipra/ProToots
synced 2025-02-16 20:48:23 +00:00
don't add "status focusable"s to the processing stack
causes double proplates in certain cases on mastodon v4.3
This commit is contained in:
parent
aafaaee904
commit
f2ebb949f9
1 changed files with 4 additions and 0 deletions
|
@ -149,6 +149,10 @@ function addtoTootObserver(ActionElement, tootObserver) {
|
||||||
// console.log(ActionElement);
|
// console.log(ActionElement);
|
||||||
if (ActionElement.hasAttribute("protoots-tracked")) return;
|
if (ActionElement.hasAttribute("protoots-tracked")) return;
|
||||||
|
|
||||||
|
// special case for Mastodon v4.3 where "status__wrapper" are created
|
||||||
|
// as "status focusable" after navigating back to timeline
|
||||||
|
if (hasClasses(ActionElement, "status") && hasClasses(ActionElement, "focusable")) return;
|
||||||
|
|
||||||
addTypeAttribute(ActionElement);
|
addTypeAttribute(ActionElement);
|
||||||
ActionElement.setAttribute("protoots-tracked", "true");
|
ActionElement.setAttribute("protoots-tracked", "true");
|
||||||
tootObserver.observe(ActionElement);
|
tootObserver.observe(ActionElement);
|
||||||
|
|
Loading…
Add table
Reference in a new issue