Skip to content

Commit

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

linkE.click();
URL.revokeObjectURL(linkE.href);

setTimeout(function() {
linkE.click();
linkNT.click();
URL.revokeObjectURL(linkNT.href)
}, 50);
linkNT.click();

// Clean up and revoke the object URL
URL.revokeObjectURL(linkE.href);
URL.revokeObjectURL(linkNT.href)
});

0 comments on commit 8e59143

Please sign in to comment.