Merge pull request #19460 from Snuffleupagus/autolinking-check-annotationLayer
Check that the annotationLayer is still active before injecting inferred links (PR 19110 follow-up)
This commit is contained in:
commit
e608daed9f
@ -1113,7 +1113,7 @@ class PDFPageView {
|
|||||||
|
|
||||||
if (this.#enableAutoLinking) {
|
if (this.#enableAutoLinking) {
|
||||||
await textLayerPromise;
|
await textLayerPromise;
|
||||||
this.annotationLayer.injectLinkAnnotations({
|
this.annotationLayer?.injectLinkAnnotations({
|
||||||
inferredLinks: Autolinker.processLinks(this),
|
inferredLinks: Autolinker.processLinks(this),
|
||||||
viewport: this.viewport,
|
viewport: this.viewport,
|
||||||
structTreeLayer: this.structTreeLayer,
|
structTreeLayer: this.structTreeLayer,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user