Skip to content

Commit 506c343

Browse files
Update frontend/src/components/ImageCompressor.jsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 629e93d commit 506c343

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frontend/src/components/ImageCompressor.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ const ImageCompressor = () => {
6363
const handleDownload = async (fileUrl, fileName) => {
6464
try {
6565
const downloadRes = await axios.get(fileUrl, { responseType: "blob" });
66-
const blob = new Blob([downloadRes.data]);
67-
const url = window.URL.createObjectURL(blob);
66+
const url = window.URL.createObjectURL(downloadRes.data);
6867

6968
const link = document.createElement("a");
7069
link.href = url;

0 commit comments

Comments
 (0)