Skip to content

Commit

Permalink
fix(connection): openUri return promise-like on existing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoRBaquero committed Aug 25, 2020
1 parent 0b8c6a1 commit 55ff0a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/connection.js
Expand Up @@ -669,6 +669,11 @@ Connection.prototype.openUri = function(uri, options, callback) {
if (typeof callback === 'function') {
callback(null, this);
}

this.then = (resolve) => {
resolve(this)
};
this.catch = () => {}
return this;
}

Expand Down

0 comments on commit 55ff0a1

Please sign in to comment.