Skip to content

Commit

Permalink
Merge pull request #19460 from Snuffleupagus/autolinking-check-annota…
Browse files Browse the repository at this point in the history
…tionLayer

Check that the annotationLayer is still active before injecting inferred links (PR 19110 follow-up)
  • Loading branch information
Snuffleupagus authored Feb 10, 2025
2 parents 86ae2ca + 81e99da commit e608dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/pdf_page_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ class PDFPageView {

if (this.#enableAutoLinking) {
await textLayerPromise;
this.annotationLayer.injectLinkAnnotations({
this.annotationLayer?.injectLinkAnnotations({
inferredLinks: Autolinker.processLinks(this),
viewport: this.viewport,
structTreeLayer: this.structTreeLayer,
Expand Down

0 comments on commit e608dae

Please sign in to comment.