cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cordova-plugin-file git commit: Updated resolveFileSystem.js so it can be parsed by uglifyJS
Date Tue, 19 May 2015 08:37:48 GMT
Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master de403d032 -> 597e2d454


Updated resolveFileSystem.js so it can be parsed by uglifyJS


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/597e2d45
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/597e2d45
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/597e2d45

Branch: refs/heads/master
Commit: 597e2d4543dd122d653a6572c89394d69ed9b717
Parents: de403d0
Author: Steve Gill <stevengill97@gmail.com>
Authored: Tue May 19 01:37:44 2015 -0700
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Tue May 19 01:37:44 2015 -0700

----------------------------------------------------------------------
 www/resolveLocalFileSystemURI.js | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/597e2d45/www/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/www/resolveLocalFileSystemURI.js b/www/resolveLocalFileSystemURI.js
index 69cfd3f..dd6f90c 100644
--- a/www/resolveLocalFileSystemURI.js
+++ b/www/resolveLocalFileSystemURI.js
@@ -20,10 +20,14 @@
 */
 
 //For browser platform: not all browsers use overrided `resolveLocalFileSystemURL`.
-if (cordova.platformId == "browser" && navigator.userAgent.search(/Chrome/) >
0) {
-    module.exports.resolveLocalFileSystemURL = window.resolveLocalFileSystemURL || window.webkitResolveLocalFileSystemURL;
-    return;
+function checkBrowser() {
+    if (cordova.platformId === "browser" && navigator.userAgent.search(/Chrome/)
> 0) {
+        var requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;
+        module.exports = requestFileSystem;
+        return;
+    }
 }
+checkBrowser();
 
 var argscheck = require('cordova/argscheck'),
     DirectoryEntry = require('./DirectoryEntry'),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message