Skip to content

Commit

Permalink
Revert "fix: downloadBlob isn't working properly on some old browsers" (
Browse files Browse the repository at this point in the history
#1709)

Reverts #1257.

Adding a delay to `revokeObjectURL` didn't help at all, as the original
issue was caused by an internal bug of `mark.via`. They have fixed the
issue in later versions.
  • Loading branch information
FurryR authored Oct 14, 2024
1 parent d21f029 commit b58a62e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions extensions/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,7 @@
const downloadBlob = (blob, file) => {
const url = URL.createObjectURL(blob);
downloadURL(url, file);
// Some old browsers process Blob URLs asynchronously
setTimeout(() => {
URL.revokeObjectURL(url);
}, 1000);
URL.revokeObjectURL(url);
};

/**
Expand Down

0 comments on commit b58a62e

Please sign in to comment.