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