Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
for iOS safari again
  • Loading branch information
robbizbal committed Nov 13, 2024
1 parent 81affef commit 35d6f4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/static/scripts/mask_downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ document.getElementById('downloadBtn').addEventListener('click', function() {
linkNT.href = URL.createObjectURL(blobNewText);
linkNT.download = 'yoyo-anonymizedText.txt'; // Specify the file name

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

setTimeout(function() {
linkNT.click();
Expand Down

0 comments on commit 35d6f4b

Please sign in to comment.