Skip to content

Commit d8494ff

Browse files
committed
Fix syntax
1 parent 715db89 commit d8494ff

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
@@ -76,10 +76,9 @@ module.exports = {
7676
'password': formVals.password
7777
}).done(function(data) {
7878
MatrixClientPeg.replaceUsingAccessToken(
79-
this.state.hs_url, this.state.is_url,
79+
that.state.hs_url, that.state.is_url,
8080
data.user_id, data.access_token
8181
);
82-
}));
8382
if (that.props.onLoggedIn) {
8483
that.props.onLoggedIn();
8584
}

0 commit comments

Comments
 (0)