Update jsonCap.js

This commit is contained in:
Val
2018-11-07 15:59:35 -05:00
committed by GitHub
parent 2ffae59b9b
commit d4275fe51b

View File

@@ -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),