default position is added

This commit is contained in:
Alena
2020-05-16 22:46:50 +02:00
committed by GitHub
parent 08c05b04e0
commit 4ca5077758
+2 -2
View File
@@ -34,8 +34,8 @@ FileOpener2.prototype.open = function (fileName, contentType, callbackContext) {
FileOpener2.prototype.showOpenWithDialog = function (fileName, contentType, callbackContext) { FileOpener2.prototype.showOpenWithDialog = function (fileName, contentType, callbackContext) {
contentType = contentType || ''; contentType = contentType || '';
callbackContext = {...callbackContext, position: callbackContext.position ? callbackContext.position : [0, 0]}; 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) { FileOpener2.prototype.uninstall = function (packageId, callbackContext) {