From 5d3da8f6190bd7fd1760978730d96c6ab7c980e9 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 18 Apr 2015 00:06:37 +0300 Subject: [PATCH] Fix bug in tracker --- js/90-tracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }; -- 2.39.2