mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-12 19:24:02 +01:00
Use arrow function to avoid bind
This commit is contained in:
parent
d7198cbe5d
commit
642a67f76f
@ -203,7 +203,9 @@ export default class RFB extends EventTargetMixin {
|
|||||||
this._mouse.onmousemove = this._handleMouseMove.bind(this);
|
this._mouse.onmousemove = this._handleMouseMove.bind(this);
|
||||||
|
|
||||||
this._sock = new Websock();
|
this._sock = new Websock();
|
||||||
this._sock.on('message', this._handle_message.bind(this));
|
this._sock.on('message', () => {
|
||||||
|
this._handle_message();
|
||||||
|
});
|
||||||
this._sock.on('open', () => {
|
this._sock.on('open', () => {
|
||||||
if ((this._rfb_connection_state === 'connecting') &&
|
if ((this._rfb_connection_state === 'connecting') &&
|
||||||
(this._rfb_init_state === '')) {
|
(this._rfb_init_state === '')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user