9
0
mirror of https://gitee.com/shuto/cordova-plugin-file-opener2.git synced 2025-02-25 23:02:49 +08:00

Update fileOpener2Proxy.js

This commit is contained in:
Nathaniel van Diepen 2018-12-11 08:59:29 -07:00 committed by GitHub
parent 4f9d9b2264
commit d84b20e620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@
var path = args[0]; var path = args[0];
var getFile = getFileLoaderForScheme(path); var getFile = getFileLoaderForScheme(path);
try{
getFile(path).then(function (file) { getFile(path).then(function (file) {
var options = new Windows.System.LauncherOptions(); var options = new Windows.System.LauncherOptions();
@ -80,11 +80,13 @@
}, function (error) { }, function (error) {
errorCallback(error); errorCallback(error);
}); });
}, function (error) { }, function (error) {
console.log("Error while opening the file: "+error); console.log("Error while opening the file: "+error);
errorCallback(error); errorCallback(error);
}); });
}catch(error){
errorCallback(error);
}
} }
}; };