Commit 8ce27ddb authored by samhed's avatar samhed

Re-fixes #428 which was broken by commit 58ded70d

* Disable local cursor when the browser doesn't support data uri
parent f9ffb21b
...@@ -88,7 +88,7 @@ var Display; ...@@ -88,7 +88,7 @@ var Display;
// Determine browser support for setting the cursor via data URI scheme // Determine browser support for setting the cursor via data URI scheme
if (this._cursor_uri || this._cursor_uri === null || if (this._cursor_uri || this._cursor_uri === null ||
this._cursor_uri === undefined) { this._cursor_uri === undefined) {
this._cursor_uri = Util.browserSupportsCursorURIs(this._target); this._cursor_uri = Util.browserSupportsCursorURIs();
} }
Util.Debug("<< Display.constructor"); Util.Debug("<< Display.constructor");
......
...@@ -1265,6 +1265,7 @@ var RFB; ...@@ -1265,6 +1265,7 @@ var RFB;
this._local_cursor = true; this._local_cursor = true;
} else { } else {
Util.Warn("Browser does not support local cursor"); Util.Warn("Browser does not support local cursor");
this._display.disableLocalCursor();
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment