diff --git a/projects/common/src/fm/shared/app.config.ts b/projects/common/src/fm/shared/app.config.ts index a36c385..4ede6a8 100644 --- a/projects/common/src/fm/shared/app.config.ts +++ b/projects/common/src/fm/shared/app.config.ts @@ -1,5 +1,5 @@ import {Inject, Injectable} from '@angular/core'; -import { Location,PathLocationStrategy } from '@angular/common'; +import { Location,PathLocationStrategy,LocationStrategy } from '@angular/common'; import {HttpClient, HttpXhrBackend} from '@angular/common/http'; import {Observable} from 'rxjs'; @@ -23,7 +23,7 @@ export class AppConfig { public load(): Promise { var url = this.location.prepareExternalUrl('/configuration.json'); - if(url.startsWith("#")) url='/configuration.json'; + if(url.startsWith("#")) url='file:///android_asset/www/configuration.json'; // hack for cordova return this.httpClient.get(url) .toPromise() .then(data => {