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 {