mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-23 05:00:54 +03:00
Fixed catch statements not having arguments on backend
Fixed backend location url not working when not in root dir on web server
This commit is contained in:
@@ -60,8 +60,10 @@ export class PostsService {
|
||||
if (isDevMode()) {
|
||||
return this.http.get('./assets/default.json');
|
||||
}
|
||||
console.log('Config location: ' + window.location.href + 'backend/config/default.json');
|
||||
return this.http.get(window.location.href + 'backend/config/default.json');
|
||||
const locations = window.location.href.split('#');
|
||||
const current_location = locations[0];
|
||||
console.log('Config location: ' + current_location + 'backend/config/default.json');
|
||||
return this.http.get(current_location + 'backend/config/default.json');
|
||||
}
|
||||
|
||||
deleteFile(name: string, isAudio: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user