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:
parent
4f9d9b2264
commit
d84b20e620
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user