adding propagationDelay property to returned object in _normalizeChallenge

This commit is contained in:
Phillip Marashian 2020-07-29 10:48:44 -07:00
父節點 6dc711b880
當前提交 1a60d53c32
共有 1 個檔案被更改,包括 4 行新增1 行删除

查看文件

@ -146,7 +146,7 @@ P._normalizeChallenge = function(name, ch) {
};
}
// init, zones, set, get, remove
// init, zones, set, get, remove, propagationDelay
if (ch.init) {
if (2 === ch.init.length) {
warn();
@ -183,6 +183,9 @@ P._normalizeChallenge = function(name, ch) {
}
gch.get = wrappy(ch.get);
}
if("number" === typeof ch.propagationDelay) {
gch.propagationDelay = ch.propagationDelay;
}
return gch;
};