diff --git a/ajax-requests/js/jsonCap.js b/ajax-requests/js/jsonCap.js
index 623e214..b7096ff 100644
--- a/ajax-requests/js/jsonCap.js
+++ b/ajax-requests/js/jsonCap.js
@@ -22,11 +22,11 @@ function captureJSON() {
content += '
' + respObj[i].Title + ' | ';
if (i == len) content += '';
}
- div.innerHTML = content;
} else {
console.log('Connection to Server succeeded. Content was not received due to error.');
}
}
+ div.innerHTML = content;
};
xhr.open('GET', 'files/jsonData.json', true);
xhr.send();