Allow third-party plugin registration, and the total count of fs type is not limited to just 4.
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/d9fa9d80 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/d9fa9d80 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/d9fa9d80 Branch: refs/heads/master Commit: d9fa9d8009971ed045a34e1467572de62e8ff2a4 Parents: bf9d20a Author: lmnbeyond <[email protected]> Authored: Mon Feb 24 11:41:50 2014 +0800 Committer: lmnbeyond <[email protected]> Committed: Mon Feb 24 11:41:50 2014 +0800 ---------------------------------------------------------------------- www/requestFileSystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/d9fa9d80/www/requestFileSystem.js ---------------------------------------------------------------------- diff --git a/www/requestFileSystem.js b/www/requestFileSystem.js index bad3291..7a1cc8f 100644 --- a/www/requestFileSystem.js +++ b/www/requestFileSystem.js @@ -37,7 +37,7 @@ var requestFileSystem = function(type, size, successCallback, errorCallback) { errorCallback && errorCallback(new FileError(code)); }; - if (type < 0 || type > 3) { + if (type < 0) { fail(FileError.SYNTAX_ERR); } else { // if successful, return a FileSystem object
