File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,10 @@ geotrekTreks.service('treksFileSystemService',
18
18
function ( currentLang ) {
19
19
var filePath = settings . device . RELATIVE_TREK_ROOT_FILE . replace ( / \$ l a n g / , currentLang ) ;
20
20
21
- console . log ( filePath ) ;
22
21
$cordovaFile . readAsText ( filePath )
23
22
. then (
24
23
function ( data ) {
25
24
var data = JSON . parse ( data ) ;
26
- console . log ( data ) ;
27
25
angular . forEach ( data . features , function ( trek ) {
28
26
angular . forEach ( trek . properties . usages , function ( usage ) {
29
27
usage . pictogram = settings . device . CDV_APP_ROOT + usage . pictogram ;
@@ -57,7 +55,7 @@ geotrekTreks.service('treksFileSystemService',
57
55
trek . properties . thumbnail = settings . device . CDV_APP_ROOT + trek . properties . thumbnail ;
58
56
}
59
57
} ) ;
60
- $cordovaFile . writeFile ( filePath , JSON . stringify ( data ) , { append : false } )
58
+ $cordovaFile . writeFile ( filePath , JSON . stringify ( data ) , true )
61
59
. then ( deferred . resolve , deferred . reject ) ;
62
60
} ,
63
61
deferred . reject
@@ -119,7 +117,7 @@ geotrekTreks.service('treksFileSystemService',
119
117
. then (
120
118
function ( currentLang ) {
121
119
var filePath = settings . device . RELATIVE_TREK_ROOT_FILE . replace ( / \$ l a n g / , currentLang ) ;
122
-
120
+ console . log ( filePath )
123
121
$cordovaFile . readAsText ( filePath )
124
122
. then (
125
123
function ( data ) {
You can’t perform that action at this time.
0 commit comments