Fix 95-login.js
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 28 Apr 2015 16:28:58 +0000 (19:28 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 28 Apr 2015 16:28:58 +0000 (19:28 +0300)
js/95-login.js

index bf16d31f1f2e166a8b5e8c3e0ce501c81a39e7fd..d08150ae1983d2b396cbf269339f5f729538997e 100644 (file)
@@ -7,9 +7,9 @@ $(function(){
                var xhr = new XMLHttpRequest();
                xhr.open('GET', '/login');
                xhr.onload = () => {
-                       if(this.status != 200)
+                       if(xhr.status != 200)
                                return;
-                       var username = this.responseText;
+                       var username = xhr.responseText;
                        sessionStorage.setItem('login_username', username);
                        start_tracking(username);
                        login.innerHTML = 'Probably logged in as ' + username;
This page took 0.010571 seconds and 4 git commands to generate.