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:
commit
c809f00b3b
3 changed files with 9 additions and 2 deletions
|
@ -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}}"
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue