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:
pwlin 2020-05-17 11:02:01 +01:00 committed by GitHub
commit ff4220955e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ FileOpener2.prototype.open = function (fileName, contentType, callbackContext) {
FileOpener2.prototype.showOpenWithDialog = function (fileName, contentType, callbackContext) {
contentType = contentType || '';
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) {