fix: use fileName for the download file name in save image dialog

This commit is contained in:
trafficlunar 2024-12-28 21:47:19 +00:00
parent 6996c9a310
commit b395f9d00c

View file

@ -46,7 +46,7 @@ function SaveImage({ close }: DialogProps) {
const link = document.createElement("a");
link.href = URL.createObjectURL(blob);
link.download = "blockmatic.png";
link.download = `${fileName}.png`;
link.click();
URL.revokeObjectURL(link.href);