diff --git a/lib/core/app-config/app-config.service.ts b/lib/core/app-config/app-config.service.ts index d250a25379..fc95acf857 100644 --- a/lib/core/app-config/app-config.service.ts +++ b/lib/core/app-config/app-config.service.ts @@ -60,8 +60,8 @@ export class AppConfigService { return location.port ? prefix + location.port : ''; } - load(): Promise { - return new Promise(resolve => { + async load(): Promise { + await new Promise(resolve => { this.http.get('app.config.json').subscribe( (data: any) => { this.config = Object.assign({}, this.config, data || {});