Dont' throw when adding page labels in thumbnails

It fixes #20520.
This commit is contained in:
Calixte Denizet 2025-12-22 23:15:09 +01:00
parent 509fcc84e2
commit 6d95eaad28
No known key found for this signature in database
GPG Key ID: 0C5442631EE0691F

View File

@ -449,7 +449,6 @@ class PDFThumbnailView {
*/
setPageLabel(label) {
this.pageLabel = typeof label === "string" ? label : null;
this.anchor.setAttribute("data-l10n-args", this.#pageL10nArgs);
this.image.setAttribute("data-l10n-args", this.#pageL10nArgs);
}
}