From d4275fe51bda08f030051d992880f8b8e425ea75 Mon Sep 17 00:00:00 2001 From: Val <35149642+vkservicesllc@users.noreply.github.com> Date: Wed, 7 Nov 2018 15:59:35 -0500 Subject: [PATCH] Update jsonCap.js --- ajax-requests/js/jsonCap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),