pleroma_cw_toggle: Try 10 times instead of 9.

This commit is contained in:
tastytea 2019-06-07 21:09:47 +02:00
parent 0abd12cae3
commit ca62db9ee3
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name Pleroma CW toggle
// @description Adds a button to toggle the visibility of all statuses with content warnings on status-pages and profile-pages.
// @version 2019.06.07.3
// @version 2019.06.07.4
// @author tastytea
// @copyright 2019, tastytea (https://tastytea.de/)
// @license GPL-3.0-only
@ -39,7 +39,7 @@ function add_button()
{
++counter;
// If this is not Pleroma or we tried 10 times, disable interval.
if (counter >= 10 || document.getElementById("app") === null)
if (counter > 10 || document.getElementById("app") === null)
{
clearInterval(interval);
return;