Skip to content

Commit

Permalink
error!
Browse files Browse the repository at this point in the history
  • Loading branch information
Parv-gugnani committed Nov 13, 2023
1 parent 555c2cf commit 498ca3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resize Image/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const resizeAndDownload = () => {
ctx.drawImage(previewImg, 0, 0, canvas.width, canvas.height);

a.href = canvas.toDataURL("image/jpeg", imgQuality);
a.download = new Date().getTime(); // Corrected 'downloadURL' to 'download'
a.download = new Date().getTime();
a.click();
};

Expand Down

0 comments on commit 498ca3d

Please sign in to comment.