fix reload app.config.json

This commit is contained in:
Eugenio Romano 2018-03-26 19:27:32 +01:00
parent 3d21aa59f3
commit c803e9f753

View File

@ -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 || {});