File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -481,15 +481,7 @@ class LinkAnnotationElement extends AnnotationElement {
481481 const link = document . createElement ( "a" ) ;
482482
483483 if ( data . url ) {
484- if (
485- ( typeof PDFJSDev === "undefined" || PDFJSDev . test ( "GENERIC" ) ) &&
486- ! linkService . addLinkAttributes
487- ) {
488- warn (
489- "LinkAnnotationElement.render - missing `addLinkAttributes`-method on the `linkService`-instance."
490- ) ;
491- }
492- linkService . addLinkAttributes ?. ( link , data . url , data . newWindow ) ;
484+ linkService . addLinkAttributes ( link , data . url , data . newWindow ) ;
493485 } else if ( data . action ) {
494486 this . _bindNamedAction ( link , data . action ) ;
495487 } else if ( data . dest ) {
Original file line number Diff line number Diff line change 1616/** @typedef {import("./display_utils").PageViewport } PageViewport */
1717/** @typedef {import("../../web/interfaces").IPDFLinkService } IPDFLinkService */
1818
19- import { warn } from "../shared/util.js" ;
2019import { XfaText } from "./xfa_text.js" ;
2120
2221/**
@@ -134,15 +133,7 @@ class XfaLayer {
134133 }
135134
136135 if ( isHTMLAnchorElement ) {
137- if (
138- ( typeof PDFJSDev === "undefined" || PDFJSDev . test ( "GENERIC" ) ) &&
139- ! linkService . addLinkAttributes
140- ) {
141- warn (
142- "XfaLayer.setAttribute - missing `addLinkAttributes`-method on the `linkService`-instance."
143- ) ;
144- }
145- linkService . addLinkAttributes ?. (
136+ linkService . addLinkAttributes (
146137 html ,
147138 attributes . href ,
148139 attributes . newWindow
You can’t perform that action at this time.
0 commit comments