diff --git a/web/pdf_find_bar.js b/web/pdf_find_bar.js index a2b0f5477..ebdd817fb 100644 --- a/web/pdf_find_bar.js +++ b/web/pdf_find_bar.js @@ -144,16 +144,15 @@ class PDFFindBar { const { findResultsCount } = this; if (total > 0) { - const limit = MATCHES_COUNT_LIMIT, - isLimited = total > limit; + const limit = MATCHES_COUNT_LIMIT; findResultsCount.setAttribute( "data-l10n-id", - `pdfjs-find-match-count${isLimited ? "-limit" : ""}` + `pdfjs-find-match-count${total > limit ? "-limit" : ""}` ); findResultsCount.setAttribute( "data-l10n-args", - JSON.stringify(isLimited ? { limit } : { current, total }) + JSON.stringify({ limit, current, total }) ); } else { findResultsCount.removeAttribute("data-l10n-id");