Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) bugfix for optra problem with span node

theli05be9264a3be
diff --git a/htroot/js/Index.js b/htroot/js/Index.js
index a71b003c0..f84b82466 100644
--- a/htroot/js/Index.js
+++ b/htroot/js/Index.js
@@ -31,7 +31,7 @@ function handleState(req) {
var status = response.getElementsByTagName("status")[0].firstChild.data;
var span = document.getElementById(urlHash)
- span.removeChild(span.firstChild);
+ if (span.hasChildNodes()) span.removeChild(span.firstChild);
if (status < 11) {
span.className = "snippetLoaded";