mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
fix reload app.config.json
This commit is contained in:
parent
3d21aa59f3
commit
c803e9f753
@ -60,8 +60,8 @@ export class AppConfigService {
|
||||
return location.port ? prefix + location.port : '';
|
||||
}
|
||||
|
||||
load(): Promise<any> {
|
||||
return new Promise(resolve => {
|
||||
async load(): Promise<any> {
|
||||
await new Promise(resolve => {
|
||||
this.http.get('app.config.json').subscribe(
|
||||
(data: any) => {
|
||||
this.config = Object.assign({}, this.config, data || {});
|
||||
|
Loading…
x
Reference in New Issue
Block a user