Removed api url from env #217

This commit is contained in:
2023-02-21 11:31:55 +01:00
parent f42f2086e7
commit 70775111c5
7 changed files with 9 additions and 14 deletions

View File

@@ -5,7 +5,6 @@ import { catchError } from "rxjs/operators";
import { Appsettings } from "src/app/models/config/appsettings";
import { SoftwareVersion } from "src/app/models/config/software-version";
import { Theme } from "src/app/models/view/theme";
import { environment } from "../../../environments/environment";
@Injectable({
providedIn: 'root'
@@ -31,11 +30,11 @@ export class SettingsService {
}
public getApiURL(): string {
if (!environment || !environment.apiURL) {
console.error('ApiURL is not set!');
return '';
if (!this.appsettings || !this.appsettings.Themes) {
console.error('ApiUrl is not set!');
return "";
}
return environment.apiURL;
return this.appsettings.ApiURL;
}
public getWebVersion(): SoftwareVersion | null {