Skip to content

Commit

Permalink
readastext instead of binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien committed Nov 20, 2017
1 parent faf1867 commit 461d5b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/trek/treksFileSystemService.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ geotrekTreks.service('treksFileSystemService',
.then(
function (currentLang) {
var filePath = settings.device.RELATIVE_TREK_ROOT_FILE.replace(/\$lang/, currentLang);
$cordovaFile.readAsBinaryString(filePath)
$cordovaFile.readAsText(filePath)
.then(
function(data) {
_treks = JSON.parse(data);
Expand Down

0 comments on commit 461d5b5

Please sign in to comment.