TSK-835: removed wrong trailing slash for environment.json
This commit is contained in:
parent
b09e0b789a
commit
d6e480959a
|
@ -9,7 +9,7 @@ import {environment} from '../../../environments/environment';
|
|||
import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
|
||||
|
||||
describe('StartupService', () => {
|
||||
const environmentFile = '/environments/data-sources/environment-information.json';
|
||||
const environmentFile = 'environments/data-sources/environment-information.json';
|
||||
const someRestUrl = 'someRestUrl';
|
||||
const someLogoutUrl = 'someLogoutUrl';
|
||||
const dummyEnvironmentInformation = {
|
||||
|
|
|
@ -33,7 +33,7 @@ export class StartupService {
|
|||
}
|
||||
|
||||
getEnvironmentFilePromise() {
|
||||
return this.httpClient.get<any>('/environments/data-sources/environment-information.json').pipe(map(jsonFile => {
|
||||
return this.httpClient.get<any>('environments/data-sources/environment-information.json').pipe(map(jsonFile => {
|
||||
if (jsonFile && environment.taskanaRestUrl === '') {
|
||||
environment.taskanaRestUrl = jsonFile.taskanaRestUrl === '' ?
|
||||
window.location.protocol + '//' + window.location.host : jsonFile.taskanaRestUrl;
|
||||
|
|
Loading…
Reference in New Issue