Fixed the preset themes issue

pull/1741/head
tidusjar 7 years ago
parent 375236cb98
commit 169b73047a

@ -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…
Cancel
Save