mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
Update fileOpener2Proxy.js
This commit is contained in:
parent
4f9d9b2264
commit
d84b20e620
@ -71,7 +71,7 @@
|
||||
var path = args[0];
|
||||
|
||||
var getFile = getFileLoaderForScheme(path);
|
||||
|
||||
try{
|
||||
getFile(path).then(function (file) {
|
||||
var options = new Windows.System.LauncherOptions();
|
||||
|
||||
@ -80,11 +80,13 @@
|
||||
}, function (error) {
|
||||
errorCallback(error);
|
||||
});
|
||||
|
||||
}, function (error) {
|
||||
console.log("Error while opening the file: "+error);
|
||||
errorCallback(error);
|
||||
});
|
||||
}catch(error){
|
||||
errorCallback(error);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user