Deprecate showDotCursor option for RFB constructor
It is not relevant for the connection stage so it should not have been a constructor argument to begin with. Ship with a warning for a release before we remove it.
This commit is contained in:
committed by
Lauri Kasanen
parent
8218a0cb2a
commit
734bdd3746
@@ -56,7 +56,6 @@ export default class RFB extends EventTargetMixin {
|
||||
this._rfb_credentials = options.credentials || {};
|
||||
this._shared = 'shared' in options ? !!options.shared : true;
|
||||
this._repeaterID = options.repeaterID || '';
|
||||
this._showDotCursor = options.showDotCursor || false;
|
||||
this._wsProtocols = options.wsProtocols || [];
|
||||
|
||||
// Internal state
|
||||
@@ -269,6 +268,12 @@ export default class RFB extends EventTargetMixin {
|
||||
this._clipViewport = false;
|
||||
this._scaleViewport = false;
|
||||
this._resizeSession = false;
|
||||
|
||||
this._showDotCursor = false;
|
||||
if (options.showDotCursor !== undefined) {
|
||||
Log.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated");
|
||||
this._showDotCursor = options.showDotCursor;
|
||||
}
|
||||
}
|
||||
|
||||
// ===== PROPERTIES =====
|
||||
|
||||
Reference in New Issue
Block a user