diff options
Diffstat (limited to 'ui/static/js/app.js')
-rw-r--r-- | ui/static/js/app.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/static/js/app.js b/ui/static/js/app.js index 8474935..2b32e63 100644 --- a/ui/static/js/app.js +++ b/ui/static/js/app.js @@ -282,10 +282,14 @@ function handleFetchOriginalContent() { request.execute(); } -function openOriginalLink() { +function openOriginalLink(openLinkInCurrentTab) { let entryLink = document.querySelector(".entry h1 a"); if (entryLink !== null) { - window.location.href = entryLink.getAttribute("href"); + if (openLinkInCurrentTab) { + window.location.href = entryLink.getAttribute("href"); + } else { + DomHelper.openNewTab(entryLink.getAttribute("href")); + } return; } |