diff --git a/example/cert-list.js b/example/cert-list.js index f8ca40f..1e78b0f 100644 --- a/example/cert-list.js +++ b/example/cert-list.js @@ -10,7 +10,12 @@ list.forEach(function (cert) { var $certOption = document.createElement('option'); - $certOption.textContent = cert.label; + if (typeof $certOption.textContent !== 'undefined') { + $certOption.textContent = cert.label; + } else { + $certOption.innerText = cert.label; + } + $certOption.value = cert.thumbprint; $certs.appendChild($certOption);