From: Marius Gavrilescu Date: Fri, 17 Apr 2015 21:06:37 +0000 (+0300) Subject: Fix bug in tracker X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=5d3da8f6190bd7fd1760978730d96c6ab7c980e9;p=plack-app-gruntmaster.git Fix bug in tracker --- diff --git a/js/90-tracker.js b/js/90-tracker.js index 5e1c9a2..cf46aeb 100644 --- a/js/90-tracker.js +++ b/js/90-tracker.js @@ -87,7 +87,7 @@ function refresh_tracker(){ var xhr = new XMLHttpRequest(); xhr.open('GET', '/us/' + user + '?format=json'); xhr.onload = () => { - localStorage.setItem('tracker_data', this.responseText); + localStorage.setItem('tracker_data', xhr.responseText); localStorage.setItem('tracker_lastfetch', Date.now()); update_tracker(); };