Use location for path
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
@@ -23,7 +23,6 @@ export class AppConfig {
|
||||
|
||||
public load(): Promise<any> {
|
||||
var url = this.location.prepareExternalUrl('/configuration.json');
|
||||
if(url.startsWith("#")) url='file:///android_asset/www/configuration.json'; // hack for cordova
|
||||
return this.httpClient.get(url)
|
||||
.toPromise()
|
||||
.then(data => {
|
||||
|
Reference in New Issue
Block a user