Skip to content

Commit

Permalink
Merge pull request #70 from leiDnedyA/fix/pdf-target
Browse files Browse the repository at this point in the history
fix(pdf button): Fixed target when click open pdf
  • Loading branch information
gaiborjosue authored Oct 8, 2024
2 parents 1974262 + 0a424e5 commit df06dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h2>Uploaded Files:</h2>
${
imageURL.endsWith('.pdf') ?
`
<a class="pdf-parent-anchor" href="#" onclick="openPDF('${imageURL}')"><embed src="${imageURL}" class="uploaded-image"></a>
<a target="_blank" class="pdf-parent-anchor" href="#" onclick="openPDF('${imageURL}')"><embed src="${imageURL}" class="uploaded-image"></a>
` :
`
<a target="_blank" rel="noopener noreferrer" class="img-parent-anchor" href="${imageURL}">
Expand Down

0 comments on commit df06dd3

Please sign in to comment.