mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
pikvm/pikvm#1228: fix ocr for http-only connection
This commit is contained in:
parent
8ec0e5518a
commit
5d8875da88
@ -71,7 +71,7 @@ export function Ocr(__getGeometry) {
|
|||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
|
||||||
self.setState = function(state) {
|
self.setState = function(state) {
|
||||||
let enabled = (state && state.ocr.enabled && navigator.clipboard && !tools.browser.is_mobile);
|
let enabled = (state && state.ocr.enabled && !tools.browser.is_mobile);
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
let el = $("stream-ocr-lang-selector");
|
let el = $("stream-ocr-lang-selector");
|
||||||
tools.selector.setValues(el, state.ocr.langs.available);
|
tools.selector.setValues(el, state.ocr.langs.available);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user