mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
fix: fixed reference bug in open method
This commit is contained in:
parent
cb09bea3c4
commit
d913b156f8
@ -29,7 +29,7 @@ function FileOpener2() {}
|
||||
FileOpener2.prototype.open = function (fileName, contentType, options) {
|
||||
contentType = contentType || '';
|
||||
options = options || {};
|
||||
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, options.position]);
|
||||
exec(options.success || null, options.error || null, 'FileOpener2', 'open', [fileName, contentType, false, options.position]);
|
||||
};
|
||||
|
||||
FileOpener2.prototype.showOpenWithDialog = function (fileName, contentType, callbackContext) {
|
||||
|
Loading…
Reference in New Issue
Block a user