pleroma toggle: Don't disable timer
This commit is contained in:
parent
9bf6450d47
commit
c98448e7c8
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue