From df5f696c82fb8006446516102ebe2683d1da3cb9 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 10 Sep 2017 11:08:42 -0400 Subject: [PATCH] Update json.js --- community/json.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/community/json.js b/community/json.js index 65c7517..1d16495 100644 --- a/community/json.js +++ b/community/json.js @@ -8,10 +8,10 @@ xmlhttp.onreadystatechange = function(){ xmlhttp.open("GET","./content/test.json",false); xmlhttp.send(); console.log(txt) -var jsona = JSON.parse(txt); -alert(jsona.src); +var json = JSON.parse(txt); +alert(json.src); -if (jsona.type == "img") { +if (json.type == "img") { var contenttype = "img" } else { var contenttype = "iframe"