1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

Rename methods for getting homeserver and identity server URLs

This commit is contained in:
Steven Hammerton
2015-10-09 11:16:57 +01:00
parent c22382360b
commit 33bede1dfe

View File

@@ -153,11 +153,19 @@ function MatrixClient(opts) {
}
utils.inherits(MatrixClient, EventEmitter);
MatrixClient.prototype.getHsUrl = function() {
/**
* Get the Homserver URL of this client
* @return {string} Homeserver URL of this client
*/
MatrixClient.prototype.getHomeserverUrl = function() {
return this.baseUrl;
}
MatrixClient.prototype.getIsUrl = function() {
/**
* Get the Identity Server URL of this client
* @return {string} Identity Server URL of this client
*/
MatrixClient.prototype.getIdentityServerUrl = function() {
return this.idBaseUrl;
}