pleroma toggle: Don't disable timer

This commit is contained in:
tastytea 2022-02-19 04:33:33 +01:00
parent 9bf6450d47
commit c98448e7c8
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 6 deletions

View File

@ -105,7 +105,7 @@ function check()
{ {
parent = root[0].parentElement; parent = root[0].parentElement;
} }
// if root element and a status was found, disable interval and add button. // if root element and a status was found, add button.
if (root.length !== 0) if (root.length !== 0)
{ {
if (!parent.getElementsByClassName("StatusContent").length > 0 if (!parent.getElementsByClassName("StatusContent").length > 0
@ -114,11 +114,6 @@ function check()
return; return;
} }
if (is_static)
{
clearInterval(interval);
}
for (let element of root) for (let element of root)
{ {
// Only add button if one or more statuses have a CW. // Only add button if one or more statuses have a CW.