mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-03 04:47:21 +02:00
Merge pull request #20521 from calixteman/issue20520
Dont' throw when adding page labels in thumbnails
This commit is contained in:
commit
7f1f5ecf09
@ -449,7 +449,6 @@ class PDFThumbnailView {
|
|||||||
*/
|
*/
|
||||||
setPageLabel(label) {
|
setPageLabel(label) {
|
||||||
this.pageLabel = typeof label === "string" ? label : null;
|
this.pageLabel = typeof label === "string" ? label : null;
|
||||||
this.anchor.setAttribute("data-l10n-args", this.#pageL10nArgs);
|
|
||||||
this.image.setAttribute("data-l10n-args", this.#pageL10nArgs);
|
this.image.setAttribute("data-l10n-args", this.#pageL10nArgs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user