Browse Source

allow for synchronous return

v2.5
AJ ONeal 4 years ago
parent
commit
08a38a71f1
  1. 2
      index.js

2
index.js

@ -478,7 +478,7 @@ Greenlock.create = function (gl) {
}
try {
if (1 === gl.approveDomains.length) {
return gl.approveDomains(opts).then(onApproved, onRejected);
return PromiseA.resolve(gl.approveDomains(opts)).then(onApproved, onRejected);
} else if (2 === gl.approveDomains.length) {
gl.approveDomains(opts, onMaybe);
} else {

Loading…
Cancel
Save