You've already forked matrix-js-sdk
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user