1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-13 19:42:25 +03:00

oooooooops... let's pretend nobody saw this

This commit is contained in:
Matthew Hodgson
2016-01-14 17:23:04 +00:00
parent e4c38ac78c
commit a8d24798e6

View File

@@ -197,7 +197,7 @@ MatrixClient.prototype.getIdentityServerUrl = function() {
*/
MatrixClient.prototype.getDomain = function() {
if (this.credentials && this.credentials.userId) {
return this.credentials.userId.split(':')[0];
return this.credentials.userId.replace(/^.*?:/, '');
}
return null;
};