mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Remove the addLinkAttributes
warnings in the Annotation/XFA-layers (PR 14092 follow-up)
These warnings have now been present in three releases, see PR 14092, hence it should (hopefully) be fine to remove them now.
This commit is contained in:
parent
9e4aaf18f7
commit
0c349c701f
2 changed files with 2 additions and 19 deletions
|
@ -481,15 +481,7 @@ class LinkAnnotationElement extends AnnotationElement {
|
|||
const link = document.createElement("a");
|
||||
|
||||
if (data.url) {
|
||||
if (
|
||||
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
|
||||
!linkService.addLinkAttributes
|
||||
) {
|
||||
warn(
|
||||
"LinkAnnotationElement.render - missing `addLinkAttributes`-method on the `linkService`-instance."
|
||||
);
|
||||
}
|
||||
linkService.addLinkAttributes?.(link, data.url, data.newWindow);
|
||||
linkService.addLinkAttributes(link, data.url, data.newWindow);
|
||||
} else if (data.action) {
|
||||
this._bindNamedAction(link, data.action);
|
||||
} else if (data.dest) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue