Allow link rel to be customized. Defaults to 'noreferrer'

This commit is contained in:
Tony Jin 2015-12-16 17:26:03 -08:00
parent a8d760d97f
commit 11f3deac56
2 changed files with 13 additions and 0 deletions

View file

@ -230,6 +230,14 @@ PDFJS.openExternalLinksInNewWindow = (
PDFJS.externalLinkTarget = (PDFJS.externalLinkTarget === undefined ?
PDFJS.LinkTarget.NONE : PDFJS.externalLinkTarget);
/**
* Specifies the |rel| attribute for external links. Defaults to stripping
* the referrer.
* @var {string}
*/
PDFJS.externalLinkRel = (PDFJS.externalLinkRel === undefined ?
'noreferrer' : PDFJS.externalLinkRel);
/**
* Determines if we can eval strings as JS. Primarily used to improve
* performance for font rendering.