mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Allow link rel to be customized. Defaults to 'noreferrer'
This commit is contained in:
parent
a8d760d97f
commit
11f3deac56
2 changed files with 13 additions and 0 deletions
|
@ -311,6 +311,11 @@ var AnnotationLayer = (function AnnotationLayerClosure() {
|
|||
link.target = LinkTargetStringMap[PDFJS.externalLinkTarget];
|
||||
}
|
||||
|
||||
// Strip referrer
|
||||
if (item.url) {
|
||||
link.rel = PDFJS.externalLinkRel;
|
||||
}
|
||||
|
||||
if (!item.url) {
|
||||
if (item.action) {
|
||||
bindNamedAction(link, item.action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue