Skip to content

Commit 7e09d9d

Browse files
authored
Merge pull request #2363 from bcgov/bugfix/2266-small-fix
Remove target blank
2 parents 06614ba + dfacbef commit 7e09d9d

File tree

1 file changed

+1
-1
lines changed
  • portal-frontend/src/app/shared/utils

1 file changed

+1
-1
lines changed

portal-frontend/src/app/shared/utils/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const downloadFile = (url: string, fileName: string) => {
3636
const downloadLink = document.createElement('a');
3737
downloadLink.href = url;
3838
downloadLink.download = fileName;
39-
downloadLink.target = '_blank';
39+
4040
if (window.webkitURL == null) {
4141
downloadLink.onclick = (event: MouseEvent) => document.body.removeChild(<Node>event.target);
4242
downloadLink.style.display = 'none';

0 commit comments

Comments
 (0)