projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4aff66a
)
Fix 95-login.js
author
Marius Gavrilescu
<marius@ieval.ro>
Tue, 28 Apr 2015 16:28:58 +0000
(19:28 +0300)
committer
Marius Gavrilescu
<marius@ieval.ro>
Tue, 28 Apr 2015 16:28:58 +0000
(19:28 +0300)
js/95-login.js
patch
|
blob
|
blame
|
history
diff --git
a/js/95-login.js
b/js/95-login.js
index bf16d31f1f2e166a8b5e8c3e0ce501c81a39e7fd..d08150ae1983d2b396cbf269339f5f729538997e 100644
(file)
--- a/
js/95-login.js
+++ b/
js/95-login.js
@@
-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.024947 seconds
and
4
git commands to generate.