cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject git commit: CB-7375: Fix the filesystem name in resolveLocalFileSystemUri
Date Thu, 11 Sep 2014 17:49:34 GMT
Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master d0af82105 -> 9a456100e


CB-7375: Fix the filesystem name in resolveLocalFileSystemUri


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/9a456100
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/9a456100
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/9a456100

Branch: refs/heads/master
Commit: 9a456100ee202452bd5ae043aed4a5a6389a49d3
Parents: d0af821
Author: Ian Clelland <iclelland@chromium.org>
Authored: Thu Sep 11 13:49:17 2014 -0400
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Thu Sep 11 13:49:17 2014 -0400

----------------------------------------------------------------------
 www/resolveLocalFileSystemURI.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9a456100/www/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/www/resolveLocalFileSystemURI.js b/www/resolveLocalFileSystemURI.js
index 3a41210..510fa09 100644
--- a/www/resolveLocalFileSystemURI.js
+++ b/www/resolveLocalFileSystemURI.js
@@ -51,7 +51,7 @@ module.exports.resolveLocalFileSystemURL = function(uri, successCallback,
errorC
         if (entry) {
             if (successCallback) {
                 // create appropriate Entry object
-                var fsName = (entry.filesystem && entry.filesystem.name) || (entry.filesystem
== window.PERSISTENT ? 'persistent' : 'temporary');
+                var fsName = entry.filesystemName || (entry.filesystem && entry.filesystem.name)
|| (entry.filesystem == window.PERSISTENT ? 'persistent' : 'temporary');
                 fileSystems.getFs(fsName, function(fs) {
                     if (!fs) {
                         fs = new FileSystem(fsName, {name:"", fullPath:"/"});


Mime
View raw message