Skip to content

Commit de403d0

Browse files
committed
Updated requestFileSystem.js so it can be parsed by uglifyJS
1 parent 3059792 commit de403d0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

www/requestFileSystem.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@
2020
*/
2121

2222
//For browser platform: not all browsers use this file.
23-
if (cordova.platformId === "browser" && navigator.userAgent.search(/Chrome/) > 0) {
24-
var requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
25-
module.exports = requestFileSystem;
26-
return;
23+
function checkBrowser() {
24+
if (cordova.platformId === "browser" && navigator.userAgent.search(/Chrome/) > 0) {
25+
var requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
26+
module.exports = requestFileSystem;
27+
return;
28+
}
2729
}
30+
checkBrowser();
2831

2932
var argscheck = require('cordova/argscheck'),
3033
FileError = require('./FileError'),

0 commit comments

Comments
 (0)