diff --git a/ajax-requests/js/jsonCap.js b/ajax-requests/js/jsonCap.js index 9d72780..38b5b7f 100644 --- a/ajax-requests/js/jsonCap.js +++ b/ajax-requests/js/jsonCap.js @@ -5,7 +5,7 @@ function captureJSON() { xhr.onload = function() { var div = document.getElementById('capturedJSON'), content = '', - check = div.innerHTML = content; + check = div.innerHTML === content; if (check) { if (xhr.status >= 200 && xhr.status < 400) { var respObj = JSON.parse(xhr.responseText),