remove extra defaults in app component
This commit is contained in:
@@ -233,9 +233,9 @@ export class AppComponent implements AfterViewInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
buildDownloadLink(download: Download) {
|
buildDownloadLink(download: Download) {
|
||||||
let baseDir = this.downloads.configuration["PUBLIC_HOST_URL"] ?? 'download/';
|
let baseDir = this.downloads.configuration["PUBLIC_HOST_URL"]';
|
||||||
if (download.quality == 'audio' || download.filename.endsWith('.mp3')) {
|
if (download.quality == 'audio' || download.filename.endsWith('.mp3')) {
|
||||||
baseDir = this.downloads.configuration["PUBLIC_HOST_AUDIO_URL"] ?? 'audio_download/';
|
baseDir = this.downloads.configuration["PUBLIC_HOST_AUDIO_URL"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (download.folder) {
|
if (download.folder) {
|
||||||
|
|||||||
Reference in New Issue
Block a user