]> iEval git - plack-app-gruntmaster.git/commitdiff
Fix bug in tracker
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 17 Apr 2015 21:06:37 +0000 (00:06 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 18 Apr 2015 08:52:00 +0000 (11:52 +0300)
js/90-tracker.js

index 5e1c9a20287359597de90525795203bcbd6f9f40..cf46aeb5787acf89db7aa9f8270f207817065903 100644 (file)
@@ -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();
        };
This page took 0.024859 seconds and 4 git commands to generate.