mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-02-16 18:31:50 +01:00
Make sure showDotCursor can be modified before connecting
The cursor object is only attached to our canvas whilst connecting, so we need to make sure we don't try to update anything when were not connected or we'll get a crash.
This commit is contained in:
parent
2525174260
commit
8218a0cb2a
@ -1895,6 +1895,7 @@ export default class RFB extends EventTargetMixin {
|
||||
}
|
||||
|
||||
_refreshCursor() {
|
||||
if (this._rfb_connection_state !== 'connected') { return; }
|
||||
const image = this._shouldShowDotCursor() ? RFB.cursors.dot : this._cursorImage;
|
||||
this._cursor.change(image.rgbaPixels,
|
||||
image.hotx, image.hoty,
|
||||
|
Loading…
Reference in New Issue
Block a user