mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Tweak the DOMTokenList.toggle
polyfill (issue 10460)
This commit is contained in:
parent
5cb00b7967
commit
68ad3e8e9d
2 changed files with 6 additions and 3 deletions
|
@ -180,7 +180,7 @@ class PDFFindBar {
|
|||
}
|
||||
Promise.resolve(matchesCountMsg).then((msg) => {
|
||||
this.findResultsCount.textContent = msg;
|
||||
this.findResultsCount.classList[!total ? 'add' : 'remove']('hidden');
|
||||
this.findResultsCount.classList.toggle('hidden', !total);
|
||||
// Since `updateResultsCount` may be called from `PDFFindController`,
|
||||
// ensure that the width of the findbar is always updated correctly.
|
||||
this._adjustWidth();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue