Skip to content

Commit b66488a

Browse files
committed
Fix syntax
1 parent 3f5c220 commit b66488a

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎src/MatrixClientPeg.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if (localStorage) {
4040
var access_token = localStorage.getItem("mx_access_token");
4141
var user_id = localStorage.getItem("mx_user_id");
4242
if (access_token && user_id && hs_url) {
43-
matrixClient = createClient(hs_url, is_url, user_id, access_token);
43+
createClient(hs_url, is_url, user_id, access_token);
4444
}
4545
}
4646

@@ -54,10 +54,10 @@ module.exports = {
5454
baseUrl: hs_url,
5555
idBaseUrl: is_url
5656
});
57-
}
57+
},
5858

5959
replaceUsingAccessToken: function(hs_url, is_url, user_id, access_token) {
60-
matrixClient = createClient(hs_url, is_url, user_id, access_token);
60+
createClient(hs_url, is_url, user_id, access_token);
6161
if (localStorage) {
6262
try {
6363
localStorage.clear();

‎src/controllers/templates/Login.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ module.exports = {
7777
'password': formVals.password
7878
}).done(function(data) {
7979
MatrixClientPeg.replaceUsingAccessToken(
80-
this.state.hs_url, this.state.is_url,
80+
that.state.hs_url, that.state.is_url,
8181
data.user_id, data.access_token
8282
);
83-
}));
8483
if (that.props.onLoggedIn) {
8584
that.props.onLoggedIn();
8685
}

0 commit comments

Comments
 (0)