mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-03-14 13:51:01 +08:00
Fix for App crashes when trying to open a file using modal with already installed app.
This commit is contained in:
parent
12c45dab04
commit
ccf7229f42
@ -34,7 +34,7 @@ FileOpener2.prototype.open = function (fileName, contentType, callbackContext) {
|
||||
|
||||
FileOpener2.prototype.showOpenWithDialog = function (fileName, contentType, callbackContext) {
|
||||
contentType = contentType || '';
|
||||
callbackContext = callbackContext || {};
|
||||
callbackContext = {...callbackContext, position: callbackContext.position ? callbackContext.position : [0, 0]};
|
||||
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, callbackContext.position]);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user