Merge pull request #10056 from Snuffleupagus/matchesCount-viewer-close
[Regression] Ensure that `PDFFindBar.updateResultsCount` doesn't throw when the viewer is closed, by providing proper default values
This commit is contained in:
commit
bf368f3a32
@ -153,7 +153,7 @@ class PDFFindBar {
|
|||||||
this.updateResultsCount(matchesCount);
|
this.updateResultsCount(matchesCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateResultsCount({ current, total, }) {
|
updateResultsCount({ current = 0, total = 0, } = {}) {
|
||||||
if (!this.findResultsCount) {
|
if (!this.findResultsCount) {
|
||||||
return; // No UI control is provided.
|
return; // No UI control is provided.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user