allow for synchronous return
This commit is contained in:
parent
73f2051188
commit
08a38a71f1
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…
Reference in New Issue