Make sure extension gets set correctly for exports (#1962)
This commit is contained in:
parent
dc1f6c4d4c
commit
d3a38202e3
@ -314,6 +314,7 @@ export const exportCanvas = async (
|
||||
if (type === "svg") {
|
||||
await fileSave(new Blob([tempSvg.outerHTML], { type: "image/svg+xml" }), {
|
||||
fileName: `${name}.svg`,
|
||||
extensions: ["svg"],
|
||||
});
|
||||
return;
|
||||
} else if (type === "clipboard-svg") {
|
||||
@ -338,6 +339,7 @@ export const exportCanvas = async (
|
||||
if (blob) {
|
||||
await fileSave(blob, {
|
||||
fileName: fileName,
|
||||
extensions: ["png"],
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user