mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2026-01-25 00:00:09 +08:00
default position is added
This commit is contained in:
@@ -34,8 +34,8 @@ FileOpener2.prototype.open = function (fileName, contentType, callbackContext) {
|
||||
|
||||
FileOpener2.prototype.showOpenWithDialog = function (fileName, contentType, callbackContext) {
|
||||
contentType = contentType || '';
|
||||
callbackContext = {...callbackContext, position: callbackContext.position ? callbackContext.position : [0, 0]};
|
||||
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, callbackContext.position]);
|
||||
callbackContext = callbackContext || {};
|
||||
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, callbackContext.position || [0, 0]]);
|
||||
};
|
||||
|
||||
FileOpener2.prototype.uninstall = function (packageId, callbackContext) {
|
||||
|
||||
Reference in New Issue
Block a user