1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #11997 from Snuffleupagus/nullish-coalescing

Add basic support for the nullish coalescing operator `??`
This commit is contained in:
Tim van der Meij 2020-06-13 00:07:32 +02:00 committed by GitHub
commit c809f00b3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -448,7 +448,7 @@ class PDFThumbnailView {
get _thumbPageTitle() {
return this.l10n.get(
"thumb_page_title",
{ page: this.pageLabel !== null ? this.pageLabel : this.id },
{ page: this.pageLabel ?? this.id },
"Page {{page}}"
);
}
@ -456,7 +456,7 @@ class PDFThumbnailView {
get _thumbPageCanvas() {
return this.l10n.get(
"thumb_page_canvas",
{ page: this.pageLabel !== null ? this.pageLabel : this.id },
{ page: this.pageLabel ?? this.id },
"Thumbnail of Page {{page}}"
);
}