Skip to content

Commit

Permalink
fix: remove _blank attribute from file downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon committed Feb 11, 2025
1 parent 541a6b9 commit f9c44b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/store/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const useAppDispatch = useDispatch.withTypes<AppDispatch>();
export const createLinkAndDownload = (url: string, fileName: string) => {
const link = document.createElement("a");
link.href = url;
link.target = "blank";
link.download = fileName;
document.body.appendChild(link);
link.click();
Expand Down

0 comments on commit f9c44b4

Please sign in to comment.