mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-30 15:49:38 +00:00
Fix API including basepath in tracks contentUrl
This commit is contained in:
parent
a58d486c44
commit
aebb3ff413
6 changed files with 16 additions and 12 deletions
|
|
@ -414,11 +414,8 @@ export default {
|
|||
|
||||
const audioEl = this.audioEl || document.createElement('audio')
|
||||
var src = audioTrack.contentUrl + `?token=${this.userToken}`
|
||||
if (this.$isDev) {
|
||||
src = `${process.env.serverUrl}${src}`
|
||||
}
|
||||
|
||||
audioEl.src = src
|
||||
audioEl.src = `${process.env.serverUrl}${src}`
|
||||
audioEl.id = 'chapter-audio'
|
||||
document.body.appendChild(audioEl)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue