From af887f27b93e2ec86efa566b3b7a8c1d8454d210 Mon Sep 17 00:00:00 2001 From: John Shaver Date: Thu, 19 Jul 2018 15:50:27 -0700 Subject: [PATCH] No longer fails due to new challenge types. --- js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index 41b3561..3bcf59b 100644 --- a/js/app.js +++ b/js/app.js @@ -247,14 +247,13 @@ if (claim.wildcard) { obj.wildcard.push(data); $qs(map.wildcard).innerHTML += '' + data.hostname + '' + data.dnsHost + '' + data.dnsAnswer + ''; - } else { + } else if(obj[data.type]) { + obj[data.type].push(data); if ('dns-01' === data.type) { $qs(map[data.type]).innerHTML += '' + data.hostname + '' + data.dnsHost + '' + data.dnsAnswer + ''; } else if ('http-01' === data.type) { $qs(map[data.type]).innerHTML += '' + data.hostname + '' + data.httpPath + '' + data.httpAuth + ''; - } else { - throw new Error('Unexpected type: ' + data.type); } } @@ -379,6 +378,7 @@ } steps[4].submit = function () { console.log('Congrats! Auto advancing...'); + var key = info.identifiers.map(function (ident) { return ident.value; }).join(','); var serverJwk = JSON.parse(localStorage.getItem('server:' + key) || 'null'); var p;