Update jsonCap.js

This commit is contained in:
Val
2018-11-07 16:11:21 -05:00
committed by GitHub
parent d4275fe51b
commit 60ffe66dae

View File

@@ -6,6 +6,7 @@ function captureJSON() {
var div = document.getElementById('capturedJSON'),
content = '',
check = div.innerHTML === content;
console.log(check);
if (check) {
if (xhr.status >= 200 && xhr.status < 400) {
var respObj = JSON.parse(xhr.responseText),