Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixed getFileContent parameter

Borislav Sapundzhiev37549ffcb129
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.js
index 68b07f22a..237b8e37a 100644
--- a/data/cordova/cordova.api.js
+++ b/data/cordova/cordova.api.js
@@ -221,9 +221,9 @@ define(function(require, exports, module) {
);
}
- function getFile(filePath, result, fail) {
+ function getFile(fullPath, result, fail) {
- filePath = normalizePath(filePath);
+ var filePath = normalizePath(fullPath);
fsRoot.getFile(filePath, {create: false},
function(fileEntry) {
@@ -238,7 +238,7 @@ define(function(require, exports, module) {
function getFileContent(fullPath, result, error) {
- getFile(filePath, function(file) {
+ getFile(fullPath, function(file) {
var reader = new FileReader();
reader.onerror = function() {
error(reader.error);