mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Fix host configuration in demo-shell when no port is present (#1971)
This commit is contained in:
committed by
Denys Vuika
parent
66a55fbb67
commit
3d0439552d
@@ -29,8 +29,8 @@ declare var document: any;
|
|||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
searchTerm: string = '';
|
searchTerm: string = '';
|
||||||
|
|
||||||
ecmHost: string = `http://${window.location.hostname}:${window.location.port}/ecm`;
|
ecmHost: string = `http://${window.location.hostname}` + (window.location.port ? `:${window.location.port}` : '') + `/ecm`;
|
||||||
bpmHost: string = `http://${window.location.hostname}:${window.location.port}/bpm`;
|
bpmHost: string = `http://${window.location.hostname}` + (window.location.port ? `:${window.location.port}` : '') + `/bpm`;
|
||||||
|
|
||||||
constructor(private authService: AlfrescoAuthenticationService,
|
constructor(private authService: AlfrescoAuthenticationService,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
|
|||||||
Reference in New Issue
Block a user