Skip to content

Commit

Permalink
remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien committed Mar 7, 2017
1 parent e303932 commit 3766c83
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/scripts/trek/treksFileSystemService.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ geotrekTreks.service('treksFileSystemService',
function (currentLang) {
var filePath = settings.device.RELATIVE_TREK_ROOT_FILE.replace(/\$lang/, currentLang);

console.log(filePath);
$cordovaFile.readAsText(filePath)
.then(
function(data) {
var data = JSON.parse(data);
console.log(data);
angular.forEach(data.features, function(trek) {
angular.forEach(trek.properties.usages, function(usage) {
usage.pictogram = settings.device.CDV_APP_ROOT + usage.pictogram;
Expand Down Expand Up @@ -57,7 +55,7 @@ geotrekTreks.service('treksFileSystemService',
trek.properties.thumbnail = settings.device.CDV_APP_ROOT + trek.properties.thumbnail;
}
});
$cordovaFile.writeFile(filePath, JSON.stringify(data), {append: false})
$cordovaFile.writeFile(filePath, JSON.stringify(data), true)
.then(deferred.resolve, deferred.reject);
},
deferred.reject
Expand Down Expand Up @@ -119,7 +117,7 @@ geotrekTreks.service('treksFileSystemService',
.then(
function (currentLang) {
var filePath = settings.device.RELATIVE_TREK_ROOT_FILE.replace(/\$lang/, currentLang);

console.log(filePath)
$cordovaFile.readAsText(filePath)
.then(
function(data) {
Expand Down

0 comments on commit 3766c83

Please sign in to comment.