adding propagationDelay property to returned object in _normalizeChallenge #50

Merged
coolaj86 merged 1 commits from :add-propagationdelay into master 2020-07-30 22:24:16 +00:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 1a60d53c32 - Show all commits

View File

@ -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;
};