From 46a743ffbfc5afae85fa63a96552ffb8d2b82c9a Mon Sep 17 00:00:00 2001 From: Tomek Dubrownik Date: Wed, 21 Aug 2013 19:13:36 +0200 Subject: [PATCH] .content --- js/plot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plot.js b/js/plot.js index 1652b0c..770383d 100644 --- a/js/plot.js +++ b/js/plot.js @@ -7,7 +7,7 @@ window.onload = function() { var xhr = new XMLHttpRequest(); xhr.open("GET", 'https://kasownik.hackerspace.pl/api/month/' + year + '/' + month + '.json', false); xhr.send(); - var res = JSON.parse(xhr.response), + var res = JSON.parse(xhr.response).content, date = new Date(); date.setYear(year); date.setMonth(month);