summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/mouse.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/mouse.js')
-rw-r--r--web/share/js/kvm/mouse.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js
index 03d90a06..3b5da1de 100644
--- a/web/share/js/kvm/mouse.js
+++ b/web/share/js/kvm/mouse.js
@@ -64,11 +64,7 @@ export function Mouse() {
self.setSocket = function(ws) {
__ws = ws;
- if (ws) {
- $("stream-box").classList.add("stream-box-mouse-enabled");
- } else {
- $("stream-box").classList.remove("stream-box-mouse-enabled");
- }
+ $("stream-box").classList.toggle("stream-box-mouse-enabled", ws);
__updateLeds();
};