mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 11:15:13 -05:00
lib/client: bind handleOnline to this
It's used as a callback to removeEventListener().
This commit is contained in:
parent
460af509e9
commit
67667e073e
1 changed files with 2 additions and 0 deletions
|
@ -148,6 +148,8 @@ export default class Client extends EventTarget {
|
||||||
constructor(params) {
|
constructor(params) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
this.handleOneline = this.handleOnline.bind(this);
|
||||||
|
|
||||||
this.params = { ...this.params, ...params };
|
this.params = { ...this.params, ...params };
|
||||||
|
|
||||||
this.reconnect();
|
this.reconnect();
|
||||||
|
|
Loading…
Reference in a new issue