mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-12 18:35:00 +02:00
Fix:Stream url format issues
This commit is contained in:
parent
74d5174cfc
commit
d2c6f1bab1
4 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ export default (ctx) => {
|
|||
return data.results.filter((b) => b.book.cover).map((ab) => {
|
||||
var coverUrl = ctx.$store.getters['audiobooks/getBookCoverSrc'](ab)
|
||||
if (process.env.NODE_ENV === 'development') return coverUrl
|
||||
return `${window.location.origin}/${coverUrl}`
|
||||
return `${window.location.origin}${coverUrl}`
|
||||
})
|
||||
}).catch((error) => {
|
||||
console.error('failed to fetch books', error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue