mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
Use nullish coalescing in the Catalog.prototype.numPages getter
This commit is contained in:
parent
0d2ab3c709
commit
a90e46bdc9
@ -665,7 +665,7 @@ class Catalog {
|
||||
}
|
||||
|
||||
get numPages() {
|
||||
return this.hasActualNumPages ? this.#actualNumPages : this._pagesCount;
|
||||
return this.#actualNumPages ?? this._pagesCount;
|
||||
}
|
||||
|
||||
get destinations() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user