Skip to content

Commit

Permalink
Merge pull request pwlin#1 from alena-n/bugfix/297-dialog-default-pos…
Browse files Browse the repository at this point in the history
…ition

Fix for App crashes when trying to open a file using modal with alrea…
  • Loading branch information
alena-n authored May 16, 2020
2 parents 12c45da + ccf7229 commit 08c05b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/plugins.FileOpener2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
};

Expand Down

0 comments on commit 08c05b0

Please sign in to comment.