Skip to content

Commit

Permalink
Revert "files: fix downloads in some older browsers (#1257)"
Browse files Browse the repository at this point in the history
This reverts commit bba8138.
  • Loading branch information
FurryR authored Oct 4, 2024
1 parent a834058 commit bf708e8
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 bf708e8

Please sign in to comment.