avoid an exception

This commit is contained in:
Zlatin Balevsky
2019-12-11 22:34:16 +00:00
parent 738f177d6c
commit 26116d313a

View File

@ -113,6 +113,12 @@ class CertificateFetch {
var fetch = this
var block = document.getElementById("certificates-" + this.divId)
if (block == null) {
// can happen if the user clicks away without hiding first
certificateFetches.delete(this.divId)
return
}
var xmlhttp = new XMLHttpRequest()
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {