Update jsonCap.js
This commit is contained in:
@@ -5,7 +5,7 @@ function captureJSON() {
|
|||||||
xhr.onload = function() {
|
xhr.onload = function() {
|
||||||
var div = document.getElementById('capturedJSON'),
|
var div = document.getElementById('capturedJSON'),
|
||||||
content = '',
|
content = '',
|
||||||
check = div.innerHTML = content;
|
check = div.innerHTML === content;
|
||||||
if (check) {
|
if (check) {
|
||||||
if (xhr.status >= 200 && xhr.status < 400) {
|
if (xhr.status >= 200 && xhr.status < 400) {
|
||||||
var respObj = JSON.parse(xhr.responseText),
|
var respObj = JSON.parse(xhr.responseText),
|
||||||
|
|||||||
Reference in New Issue
Block a user