Diff

Differences From Artifact [02acf47905]:

To Artifact [213cbbd233]:


    42     42   	if (globalCerts == null) {
    43     43   		htmlObject.innerHTML = "<i>Updating...</i>";
    44     44   	} else {
    45     45   		displayCerts(htmlObject, globalCerts);
    46     46   	}
    47     47   
    48     48   	parentWindow.cackeyListCertificates(function(certs) {
           49  +		/*
           50  +		 * If there is an error then we are invoked with no certs
           51  +		 * parameter at all, fake one.
           52  +		 */
           53  +		if (!certs) {
           54  +			certs = [];
           55  +		}
           56  +
    49     57   		globalCerts = certs;
    50     58   
    51     59   		displayCerts(htmlObject, certs);
    52     60   	});
    53     61   
    54     62   	return;
    55     63   }
    56     64   
    57     65   setTimeout(function() {
    58     66   	updateCertificates(document.getElementById('certificates'));
    59     67   }, 1);