Skip to content

Commit 3766c83

Browse files
author
bastien
committed
remove log
1 parent e303932 commit 3766c83

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/scripts/trek/treksFileSystemService.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ geotrekTreks.service('treksFileSystemService',
1818
function (currentLang) {
1919
var filePath = settings.device.RELATIVE_TREK_ROOT_FILE.replace(/\$lang/, currentLang);
2020

21-
console.log(filePath);
2221
$cordovaFile.readAsText(filePath)
2322
.then(
2423
function(data) {
2524
var data = JSON.parse(data);
26-
console.log(data);
2725
angular.forEach(data.features, function(trek) {
2826
angular.forEach(trek.properties.usages, function(usage) {
2927
usage.pictogram = settings.device.CDV_APP_ROOT + usage.pictogram;
@@ -57,7 +55,7 @@ geotrekTreks.service('treksFileSystemService',
5755
trek.properties.thumbnail = settings.device.CDV_APP_ROOT + trek.properties.thumbnail;
5856
}
5957
});
60-
$cordovaFile.writeFile(filePath, JSON.stringify(data), {append: false})
58+
$cordovaFile.writeFile(filePath, JSON.stringify(data), true)
6159
.then(deferred.resolve, deferred.reject);
6260
},
6361
deferred.reject
@@ -119,7 +117,7 @@ geotrekTreks.service('treksFileSystemService',
119117
.then(
120118
function (currentLang) {
121119
var filePath = settings.device.RELATIVE_TREK_ROOT_FILE.replace(/\$lang/, currentLang);
122-
120+
console.log(filePath)
123121
$cordovaFile.readAsText(filePath)
124122
.then(
125123
function(data) {

0 commit comments

Comments
 (0)