mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
fixed ocr null event handling
This commit is contained in:
parent
5aef0a2193
commit
28167c4b45
@ -73,9 +73,13 @@ export function Ocr(__getGeometry) {
|
||||
/************************************************************************/
|
||||
|
||||
self.setState = function(state) {
|
||||
if (state) {
|
||||
if (state.enabled !== undefined) {
|
||||
__enabled = (state.enabled && !tools.browser.is_mobile);
|
||||
}
|
||||
} else {
|
||||
__enabled = false;
|
||||
}
|
||||
if (__enabled) {
|
||||
let el = $("stream-ocr-lang-selector");
|
||||
el.options.length = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user