pikvm/pikvm#1228: fix ocr for http-only connection

This commit is contained in:
Maxim Devaev 2024-01-27 08:03:12 +02:00
parent 8ec0e5518a
commit 5d8875da88

View File

@ -71,7 +71,7 @@ export function Ocr(__getGeometry) {
/************************************************************************/
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) {
let el = $("stream-ocr-lang-selector");
tools.selector.setValues(el, state.ocr.langs.available);