diff options
author | Devaev Maxim <[email protected]> | 2019-03-27 06:57:43 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-03-27 06:57:43 +0300 |
commit | 2acec3f229070539e1c199977d4ad5e19af76075 (patch) | |
tree | 8e1e800dfb55a701143eba7bdcd25eddd41c4f0f /web/share/js/kvm/keyboard.js | |
parent | 68f28c69f30b1289ff55963d056c8baa232136b1 (diff) |
api refactoring
Diffstat (limited to 'web/share/js/kvm/keyboard.js')
-rw-r--r-- | web/share/js/kvm/keyboard.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/kvm/keyboard.js b/web/share/js/kvm/keyboard.js index f15c2b53..189abb2c 100644 --- a/web/share/js/kvm/keyboard.js +++ b/web/share/js/kvm/keyboard.js @@ -26,7 +26,7 @@ function Keyboard() { /************************************************************************/ var __ws = null; - var __ok = true; + var __online = true; var __keys = [].slice.call($$$("div#keyboard-desktop div.keyboard-block div.keyboard-row div.key")); var __modifiers = [].slice.call($$$("div#keyboard-desktop div.keyboard-block div.keyboard-row div.modifier")); @@ -77,7 +77,7 @@ function Keyboard() { }; self.setState = function(state) { - __ok = state.ok; + __online = state.online; __updateLeds(); }; @@ -102,7 +102,7 @@ function Keyboard() { var title = "Keyboard free"; if (__ws) { - if (__ok) { + if (__online) { if (is_captured) { led = "led-green"; title = "Keyboard captured"; |