Skip to content

Commit

Permalink
Merge pull request #37 from baloise/main
Browse files Browse the repository at this point in the history
Update mask_downloader.js
  • Loading branch information
robbizbal authored Nov 13, 2024
2 parents 0e1efa2 + 72fd617 commit 130cc8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/static/scripts/mask_downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ document.getElementById('downloadBtn').addEventListener('click', function() {
linkNT.href = URL.createObjectURL(blobNewText);
linkNT.download = 'yoyo-anonymizedText.txt'; // Specify the file name

// Programmatically click the link to trigger the download
linkE.click();
setTimeout(function() {
linkE.click();
}, 50);
linkNT.click();

// Clean up and revoke the object URL
Expand Down

0 comments on commit 130cc8f

Please sign in to comment.