From 0f29005d2718ba8893bef4321c4bde4c6afe0083 Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 18 Jun 2021 11:27:24 +0800 Subject: [PATCH] Edit for accessibility. --- app/assets/javascripts/archive/pdf/pdf.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/assets/javascripts/archive/pdf/pdf.js b/app/assets/javascripts/archive/pdf/pdf.js index 85dec3e..c87ebd6 100644 --- a/app/assets/javascripts/archive/pdf/pdf.js +++ b/app/assets/javascripts/archive/pdf/pdf.js @@ -20581,6 +20581,10 @@ var LinkAnnotationElement = /*#__PURE__*/function (_AnnotationElement) { if (destination) { link.className = "internalLink"; } + var span = document.createElement("span"); + span.style.display = 'none'; + span.innerHTML = "internalLink"; + link.appendChild(span) } }, { key: "_bindNamedAction", @@ -20596,6 +20600,10 @@ var LinkAnnotationElement = /*#__PURE__*/function (_AnnotationElement) { }; link.className = "internalLink"; + var span = document.createElement("span"); + span.style.display = 'none'; + span.innerHTML = "internalLink"; + link.appendChild(span); } }]);