ソースを参照

Re-fixes #428 which was broken by commit 58ded70
* Disable local cursor when the browser doesn't support data uri

samhed 10 年 前
コミット
8ce27ddb4b
2 ファイル変更2 行追加1 行削除
  1. 1 1
      include/display.js
  2. 1 0
      include/rfb.js

+ 1 - 1
include/display.js

@@ -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");

+ 1 - 0
include/rfb.js

@@ -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();
             }
             }
         }
         }
     };
     };