diff --git a/bower.json b/bower.json index 16735b0..8dffebc 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "cordova-promise-fs", "main": "dist/CordovaPromiseFS.js", - "version": "0.13.0", + "version": "1.1.1", "homepage": "https://github.com/markmarijnissen/cordova-promise-fs", "authors": [ "Mark Marijnissen " diff --git a/index.js b/index.js index 900b9a9..103f598 100644 --- a/index.js +++ b/index.js @@ -278,7 +278,7 @@ module.exports = function(options){ resolve(fileEntry); }, function(err){ - if(err.code === 1) { + if(err.code === DOMException.NOT_FOUND_ERR || err.code === 1) { resolve(false); } else { reject(err); @@ -296,7 +296,7 @@ module.exports = function(options){ resolve(dirEntry); }, function(err){ - if(err.code === 1) { + if(err.code === DOMException.NOT_FOUND_ERR || err.code === 1) { resolve(false); } else { reject(err);