mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
Cleanup: remove explicit localhost:3333 and remove unnessesary if(dev) blocks
This commit is contained in:
parent
bf16681bea
commit
42616b59de
6 changed files with 5 additions and 23 deletions
|
@ -23,10 +23,6 @@ export default class AudioTrack {
|
|||
get relativeContentUrl() {
|
||||
if (!this.contentUrl || this.contentUrl.startsWith('http')) return this.contentUrl
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
return `${process.env.serverUrl}${this.contentUrl}?token=${this.userToken}`
|
||||
}
|
||||
|
||||
return this.contentUrl + `?token=${this.userToken}`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue