Pass file extensions with leading dot after API change (#2149)

This commit is contained in:
Thomas Steiner 2020-09-10 12:00:18 +02:00 committed by GitHub
parent aaddde5dd9
commit 48c2a13c7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View file

@ -313,7 +313,7 @@ export const exportCanvas = async (
if (type === "svg") {
await fileSave(new Blob([tempSvg.outerHTML], { type: "image/svg+xml" }), {
fileName: `${name}.svg`,
extensions: ["svg"],
extensions: [".svg"],
});
return;
} else if (type === "clipboard-svg") {
@ -338,7 +338,7 @@ export const exportCanvas = async (
if (blob) {
await fileSave(blob, {
fileName: fileName,
extensions: ["png"],
extensions: [".png"],
});
}
});