Change type from Ctor to Options
This commit is contained in:
parent
e9cea73357
commit
b328c54da8
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ export class HomeServerApi {
|
||||||
private readonly _requestFn: RequestFunction;
|
private readonly _requestFn: RequestFunction;
|
||||||
private readonly _reconnector: Reconnector;
|
private readonly _reconnector: Reconnector;
|
||||||
|
|
||||||
constructor({homeserver, accessToken, request, reconnector}: Ctor) {
|
constructor({homeserver, accessToken, request, reconnector}: Options) {
|
||||||
// store these both in a closure somehow so it's harder to get at in case of XSS?
|
// store these both in a closure somehow so it's harder to get at in case of XSS?
|
||||||
// one could change the homeserver as well so the token gets sent there, so both must be protected from read/write
|
// one could change the homeserver as well so the token gets sent there, so both must be protected from read/write
|
||||||
this._homeserver = homeserver;
|
this._homeserver = homeserver;
|
||||||
|
|
Reference in a new issue