Skip to content

Commit

Permalink
fix: add target (#647)
Browse files Browse the repository at this point in the history
* fix: add target

* fix: keep the space

* fix: final answer

* fix: ugh
  • Loading branch information
ColinBuyck authored Oct 12, 2023
1 parent 88f5629 commit ae32a00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sites/public/src/lib/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export const downloadExternalPDF = async (fileURL: string, fileName: string) =>
const url = window.URL.createObjectURL(new Blob([blob]))
const link = document.createElement("a")
link.href = url
link.target = "_blank"
link.setAttribute("download", `${fileName}.pdf`)

document.body.appendChild(link)
Expand Down

0 comments on commit ae32a00

Please sign in to comment.