summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/hid.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-24 08:58:14 +0300
committerDevaev Maxim <[email protected]>2021-05-24 08:58:14 +0300
commitdb192b0769f3b9e8f6940eb463a2294130bced94 (patch)
tree2bd1cb5fdc109e376e8863253c2c8ed01faa688b /web/share/js/kvm/hid.js
parent580d7c118260b349eb0c6347a4c0247791eb92a3 (diff)
refactoring
Diffstat (limited to 'web/share/js/kvm/hid.js')
-rw-r--r--web/share/js/kvm/hid.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js
index b944e268..8e6d3fd0 100644
--- a/web/share/js/kvm/hid.js
+++ b/web/share/js/kvm/hid.js
@@ -31,13 +31,11 @@ import {Keyboard} from "./keyboard.js";
import {Mouse} from "./mouse.js";
-export function Hid(get_resolution_callback) {
+export function Hid(__getResolution) {
var self = this;
/************************************************************************/
- var __get_resolution_callback = get_resolution_callback;
-
var __recorder = null;
var __keyboard = null;
var __mouse = null;
@@ -45,7 +43,7 @@ export function Hid(get_resolution_callback) {
var __init__ = function() {
__recorder = new Recorder();
__keyboard = new Keyboard(__recorder.recordWsEvent);
- __mouse = new Mouse(__get_resolution_callback, __recorder.recordWsEvent);
+ __mouse = new Mouse(__getResolution, __recorder.recordWsEvent);
let hidden_attr = null;
let visibility_change_attr = null;