From 8ce27ddb4bb51e7e67bfac91505da73c22b09a79 Mon Sep 17 00:00:00 2001 From: samhed Date: Wed, 29 Apr 2015 14:54:28 +0200 Subject: [PATCH] Re-fixes #428 which was broken by commit 58ded70 * Disable local cursor when the browser doesn't support data uri --- include/display.js | 2 +- include/rfb.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/display.js b/include/display.js index 201acf33..9a8e4559 100644 --- a/include/display.js +++ b/include/display.js @@ -88,7 +88,7 @@ var Display; // Determine browser support for setting the cursor via data URI scheme if (this._cursor_uri || this._cursor_uri === null || this._cursor_uri === undefined) { - this._cursor_uri = Util.browserSupportsCursorURIs(this._target); + this._cursor_uri = Util.browserSupportsCursorURIs(); } Util.Debug("<< Display.constructor"); diff --git a/include/rfb.js b/include/rfb.js index b9db39c4..a591ca2b 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -1265,6 +1265,7 @@ var RFB; this._local_cursor = true; } else { Util.Warn("Browser does not support local cursor"); + this._display.disableLocalCursor(); } } };