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;