We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbdf507 commit 181972bCopy full SHA for 181972b
src/App.vue
@@ -375,10 +375,9 @@ export default {
375
const url = window.URL.createObjectURL(blob);
376
const a = document.createElement("a");
377
a.href = url;
378
- a.download = truncate(
379
- this.text.replace(/[^a-z0-9]/gi, "_").toLowerCase(),
380
- 100
381
- ); // download file name
+ a.download =
+ truncate(this.text.replace(/[^a-z0-9]/gi, "_").toLowerCase(), 100) +
+ ".svg"; // download file name
382
a.click();
383
window.URL.revokeObjectURL(url);
384
},
0 commit comments