From b8dfb983dfa44d4c6adfa70f6d216806619d72da Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Sat, 11 Nov 2017 16:44:53 +0100 Subject: [PATCH] Fix old focus on click references The property was renamed when mergin the public API changes, but a few references were overlooked. --- app/ui.js | 4 ++-- core/rfb.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/ui.js b/app/ui.js index f6615674..5f0d403e 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1432,7 +1432,7 @@ var UI = { document.getElementById('noVNC_keyboard_button') .classList.add("noVNC_selected"); if (UI.rfb) { - UI.rfb.set_focus_on_click(false); + UI.rfb.focusOnClick = false; } }, @@ -1440,7 +1440,7 @@ var UI = { document.getElementById('noVNC_keyboard_button') .classList.remove("noVNC_selected"); if (UI.rfb) { - UI.rfb.set_focus_on_click(true); + UI.rfb.focusOnClick = true; } }, diff --git a/core/rfb.js b/core/rfb.js index 3d12ae4b..9f661ed2 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -442,7 +442,7 @@ RFB.prototype = { return; } - if (!this._focus_on_click) { + if (!this.focusOnClick) { return; }