1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Prompt for terms of service on integration manager changes

Part of https://github.com/vector-im/riot-web/issues/10539
This commit is contained in:
Travis Ralston
2019-08-15 13:28:23 -06:00
parent ded2297523
commit 27504e1578
5 changed files with 122 additions and 37 deletions

View File

@@ -40,7 +40,14 @@ export class IntegrationManagerInstance {
get name(): string {
const parsed = url.parse(this.uiUrl);
return parsed.hostname;
return parsed.host;
}
get trimmedApiUrl(): string {
const parsed = url.parse(this.apiUrl);
parsed.pathname = '';
parsed.path = '';
return parsed.format();
}
getScalarClient(): ScalarAuthClient {