Skip to content

Commit

Permalink
Merge pull request #9960 from lantw44/wip/lantw/fix(connection)-fix-p…
Browse files Browse the repository at this point in the history
…romise-chaining-for-openUri

fix(connection): fix promise chaining for openUri
  • Loading branch information
vkarpov15 committed Feb 22, 2021
2 parents 9d396d2 + 6fe7301 commit a4410b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ Connection.prototype.openUri = function(uri, options, callback) {
this.then = function(resolve, reject) {
return this.$initialConnection.then(() => {
if (typeof resolve === 'function') {
resolve(_this);
return resolve(_this);
}
}, reject);
};
Expand Down

0 comments on commit a4410b8

Please sign in to comment.