mirror of https://github.com/vector-im/riot-web
				
				
				
			Fix syntax
							parent
							
								
									3f5c220993
								
							
						
					
					
						commit
						b66488a783
					
				|  | @ -40,7 +40,7 @@ if (localStorage) { | |||
|     var access_token = localStorage.getItem("mx_access_token"); | ||||
|     var user_id = localStorage.getItem("mx_user_id"); | ||||
|     if (access_token && user_id && hs_url) { | ||||
|         matrixClient = createClient(hs_url, is_url, user_id, access_token); | ||||
|         createClient(hs_url, is_url, user_id, access_token); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  | @ -54,10 +54,10 @@ module.exports = { | |||
|             baseUrl: hs_url, | ||||
|             idBaseUrl: is_url | ||||
|         }); | ||||
|     } | ||||
|     }, | ||||
| 
 | ||||
|     replaceUsingAccessToken: function(hs_url, is_url, user_id, access_token) { | ||||
|         matrixClient = createClient(hs_url, is_url, user_id, access_token); | ||||
|         createClient(hs_url, is_url, user_id, access_token); | ||||
|         if (localStorage) { | ||||
|             try { | ||||
|                 localStorage.clear(); | ||||
|  |  | |||
|  | @ -77,10 +77,9 @@ module.exports = { | |||
|             'password': formVals.password | ||||
|         }).done(function(data) { | ||||
|             MatrixClientPeg.replaceUsingAccessToken( | ||||
|                 this.state.hs_url, this.state.is_url, | ||||
|                 that.state.hs_url, that.state.is_url, | ||||
|                 data.user_id, data.access_token | ||||
|             ); | ||||
|             })); | ||||
|             if (that.props.onLoggedIn) { | ||||
|                 that.props.onLoggedIn(); | ||||
|             } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Mark Haines
						Mark Haines