[ADF-2961] support for protocol substition in app config files (#3324)

* support for protocol substition in app config files

* Update app-config.service.spec.ts

* Update app-config.service.spec.ts
This commit is contained in:
Denys Vuika
2018-05-15 13:10:27 +01:00
committed by GitHub
parent f159fbaa2c
commit db7d0b7c08
3 changed files with 23 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ export class AppConfigService {
map.set('hostname', this.getLocationHostname());
map.set(':port', this.getLocationPort(':'));
map.set('port', this.getLocationPort());
map.set('protocol', this.getLocationProtocol());
result = this.formatString(result, map);
}
if (result === undefined) {
@@ -74,6 +75,13 @@ export class AppConfigService {
return <T> result;
}
/**
* Gets the location.protocol value.
*/
getLocationProtocol(): string {
return location.protocol;
}
/**
* Gets the location.hostname property.
* @returns Value of the property