Skip to content

Commit

Permalink
Merge pull request #704 from notpushkin/patch-1
Browse files Browse the repository at this point in the history
Allow passing a Modem instance directly
  • Loading branch information
apocas authored Mar 11, 2023
2 parents 36b8c46 + 7777f39 commit ab3fa3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ var Docker = function(opts) {
}
}

this.modem = new Modem(opts);
if (opts && opts.modem) {
this.modem = opts.modem;
} else {
this.modem = new Modem(opts);
}
this.modem.Promise = plibrary;
};

Expand Down

0 comments on commit ab3fa3a

Please sign in to comment.