Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

Make sure extension gets set correctly for exports (#1962)

Thomas Steinerd3a38202e376
diff --git a/src/data/index.ts b/src/data/index.ts
index d50a1730a1..47e81c29d0 100644
--- a/src/data/index.ts
+++ b/src/data/index.ts
@@ -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"],
});
}
});