Skip to content

Commit

Permalink
fix: keep the space
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinBuyck committed Oct 12, 2023
1 parent 8365834 commit 1fc6a26
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 @@ -226,6 +226,7 @@ export const downloadExternalPDF = async (fileURL: string, fileName: string) =>
link.href = url
link.setAttribute("download", `${fileName}.pdf`)
link.target = "_blank"

document.body.appendChild(link)
link.click()
link.parentNode.removeChild(link)
Expand Down

0 comments on commit 1fc6a26

Please sign in to comment.