summaryrefslogtreecommitdiff
path: root/web/share/js/kvm
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-10-07 02:36:46 +0300
committerMaxim Devaev <[email protected]>2022-10-07 02:37:57 +0300
commite1c4a5163de2df49b35bb11efeaa0505ea6bbc64 (patch)
tree96d02d1eceb4c7a682381f4bc108a8d108e926bb /web/share/js/kvm
parent684b0185f79c67b8730b64390cd4a040aa435b5d (diff)
Minimal android compatibility
Note that Samsung devices can't handle (hover: none) media query
Diffstat (limited to 'web/share/js/kvm')
-rw-r--r--web/share/js/kvm/mouse.js2
-rw-r--r--web/share/js/kvm/ocr.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js
index 894d64cf..a2c7e2c9 100644
--- a/web/share/js/kvm/mouse.js
+++ b/web/share/js/kvm/mouse.js
@@ -129,7 +129,7 @@ export function Mouse(__getGeometry, __recordWsEvent) {
var __updateOnlineLeds = function() {
let is_captured;
if (__absolute) {
- is_captured = (__stream_hovered || tools.browser.is_ios);
+ is_captured = (__stream_hovered || tools.browser.is_mobile);
} else {
is_captured = __isRelativeCaptured();
}
diff --git a/web/share/js/kvm/ocr.js b/web/share/js/kvm/ocr.js
index 5f410d91..fa69dff4 100644
--- a/web/share/js/kvm/ocr.js
+++ b/web/share/js/kvm/ocr.js
@@ -71,7 +71,7 @@ export function Ocr(__getGeometry) {
/************************************************************************/
self.setState = function(state) {
- let enabled = (state && state.ocr.enabled && navigator.clipboard && !tools.browser.is_ios);
+ let enabled = (state && state.ocr.enabled && navigator.clipboard && !tools.browser.is_mobile);
if (enabled) {
let selected = tools.storage.get("stream.ocr.lang", state.ocr.langs["default"]);
let html = "";