mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-02 04:17:24 +02: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() {
|
get numPages() {
|
||||||
return this.hasActualNumPages ? this.#actualNumPages : this._pagesCount;
|
return this.#actualNumPages ?? this._pagesCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
get destinations() {
|
get destinations() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user