mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-03-15 06:11:00 +08:00
Merge pull request #298 from alena-n/master
Fix for App crashes when trying to open a file using modal with already installed app. #297
This commit is contained in:
commit
ff4220955e
@ -35,7 +35,7 @@ FileOpener2.prototype.open = function (fileName, contentType, callbackContext) {
|
|||||||
FileOpener2.prototype.showOpenWithDialog = function (fileName, contentType, callbackContext) {
|
FileOpener2.prototype.showOpenWithDialog = function (fileName, contentType, callbackContext) {
|
||||||
contentType = contentType || '';
|
contentType = contentType || '';
|
||||||
callbackContext = callbackContext || {};
|
callbackContext = callbackContext || {};
|
||||||
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, callbackContext.position]);
|
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, callbackContext.position || [0, 0]]);
|
||||||
};
|
};
|
||||||
|
|
||||||
FileOpener2.prototype.uninstall = function (packageId, callbackContext) {
|
FileOpener2.prototype.uninstall = function (packageId, callbackContext) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user