mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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
|
||||
|
Reference in New Issue
Block a user