* take care of kanaka's suggestions
(cherry picked from commit 11f3271a52505dccbf38bea422e7c9a79dddd478) Signed-off-by: Joel Martin <github@martintribe.org>
This commit is contained in:
committed by
Joel Martin
parent
6425f611d8
commit
b7155950d3
+5
-4
@@ -132,7 +132,9 @@ var that = {}, // Public API interface
|
||||
//
|
||||
|
||||
// VNC viewport rendering Canvas
|
||||
//Util.conf_default(conf, that, 'target', 'VNC_canvas');
|
||||
Util.conf_default(conf, that, 'target', 'VNC_canvas');
|
||||
// Area that traps keyboard input
|
||||
Util.conf_default(conf, that, 'focusContainer', document);
|
||||
|
||||
Util.conf_default(conf, that, 'encrypt', false, true);
|
||||
Util.conf_default(conf, that, 'true_color', true, true);
|
||||
@@ -140,8 +142,6 @@ Util.conf_default(conf, that, 'true_color', true, true);
|
||||
Util.conf_default(conf, that, 'b64encode', true, true);
|
||||
Util.conf_default(conf, that, 'local_cursor', true, true);
|
||||
|
||||
Util.conf_default(conf, that, 'currentDocument', true, document);
|
||||
|
||||
// time to wait for connection
|
||||
Util.conf_default(conf, that, 'connectTimeout', 2000);
|
||||
// frequency to check for send/receive
|
||||
@@ -197,7 +197,8 @@ function constructor() {
|
||||
}
|
||||
// Initialize canvas
|
||||
try {
|
||||
canvas = new Canvas({'target': conf.target, 'currentDocument': conf.currentDocument});
|
||||
canvas = new Canvas({'target': conf.target,
|
||||
'focusContainer': conf.focusContainer});
|
||||
} catch (exc) {
|
||||
Util.Error("Canvas exception: " + exc);
|
||||
updateState('fatal', "No working Canvas");
|
||||
|
||||
Reference in New Issue
Block a user