mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed the preset themes issue
This commit is contained in:
parent
375236cb98
commit
169b73047a
2 changed files with 9 additions and 1 deletions
|
@ -55,6 +55,14 @@ export class ServiceAuthHelpers {
|
|||
}
|
||||
}
|
||||
|
||||
protected extractContentData(res: Response) {
|
||||
if(res.text()) {
|
||||
return res.text();
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
protected handleError(error: any) {
|
||||
// In a real world app, we might use a remote logging infrastructure
|
||||
// We'd also dig deeper into the error to get a better message
|
||||
|
|
|
@ -129,7 +129,7 @@ export class SettingsService extends ServiceAuthHelpers {
|
|||
}
|
||||
|
||||
public getThemeContent(themeUrl: string): Observable<string> {
|
||||
return this.httpAuth.get(`${this.url}/themecontent?url=${themeUrl}`).map(this.extractData).catch(this.handleError);
|
||||
return this.httpAuth.get(`${this.url}/themecontent?url=${themeUrl}`).map(this.extractContentData).catch(this.handleError);
|
||||
}
|
||||
|
||||
public getEmailNotificationSettings(): Observable<IEmailNotificationSettings> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue