From ae32a009c27f20ade857ce707176d6dc660436d8 Mon Sep 17 00:00:00 2001 From: ColinBuyck <53269332+ColinBuyck@users.noreply.github.com> Date: Thu, 12 Oct 2023 14:58:34 -0700 Subject: [PATCH] fix: add target (#647) * fix: add target * fix: keep the space * fix: final answer * fix: ugh --- sites/public/src/lib/helpers.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/sites/public/src/lib/helpers.tsx b/sites/public/src/lib/helpers.tsx index 6d3dd6cc4f..8d7850b969 100644 --- a/sites/public/src/lib/helpers.tsx +++ b/sites/public/src/lib/helpers.tsx @@ -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)