Skip to content

Commit

Permalink
fix(webui): better filenames when downloading book pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Jul 31, 2023
1 parent 419cb5a commit 19abdce
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions komga-webui/src/views/BookReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -781,11 +781,11 @@ export default Vue.extend({
},
closeBook() {
this.$router.push(
{
name: this.book.oneshot ? 'browse-oneshot' : 'browse-book',
params: {bookId: this.bookId.toString(), seriesId: this.book.seriesId},
query: {context: this.context.origin, contextId: this.context.id},
})
{
name: this.book.oneshot ? 'browse-oneshot' : 'browse-book',
params: {bookId: this.bookId.toString(), seriesId: this.book.seriesId},
query: {context: this.context.origin, contextId: this.context.id},
})
},
changeReadingDir(dir: ReadingDirection) {
this.readingDirection = dir
Expand Down Expand Up @@ -867,6 +867,7 @@ export default Vue.extend({
downloadCurrentPage() {
new jsFileDownloader({
url: this.currentPage.url,
filename: `${this.book.name}-${this.currentPage.number}.${this.currentPage.fileName.split('.').pop()}`,
withCredentials: true,
forceDesktopMode: true,
})
Expand Down

0 comments on commit 19abdce

Please sign in to comment.