Fix:Stream url format issues

This commit is contained in:
advplyr 2022-02-22 19:02:01 -06:00
parent 74d5174cfc
commit d2c6f1bab1
4 changed files with 5 additions and 5 deletions

View file

@ -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)