Add option to open external links in new window

This commit is contained in:
Mike Lyons 2015-02-26 13:26:41 -05:00
parent bc7a110743
commit d271811740
2 changed files with 12 additions and 0 deletions

View file

@ -217,6 +217,9 @@ var AnnotationUtils = (function AnnotationUtilsClosure() {
var link = document.createElement('a');
link.href = link.title = item.url || '';
if (item.url && PDFJS.openExternalLinksInNewWindow) {
link.target = '_blank';
}
container.appendChild(link);