Skip to content

Commit

Permalink
fix download book filename
Browse files Browse the repository at this point in the history
  • Loading branch information
bjesus committed Nov 2, 2024
1 parent 486ca1d commit 1d89f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const downloadBook = () => {
const url = URL.createObjectURL(bookFile.value);
const b = lastResult.value;
link.href = url;
link.download = sanitize(`${b.Author} - ${b.Title}.${b.Extension}`);
link.download = sanitize(`${b.author} - ${b.title}.${b.ext}`);
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
Expand Down

0 comments on commit 1d89f91

Please sign in to comment.