From 67e7ded58b9c2a9d4d6d1c9850d493638b325c4d Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Fri, 11 Oct 2024 18:22:24 +0000 Subject: [PATCH] fixed broken js --- html/index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/html/index.php b/html/index.php index 5e58710..6171fa6 100644 --- a/html/index.php +++ b/html/index.php @@ -169,15 +169,15 @@ function set_state(state) { if (data.ocr && data.waiting && !data.scan) { state = 'ocr'; - } elseif (data.scan && data.waiting) { + } else if (data.scan && data.waiting) { state = 'scan'; - } elseif (data.scan) { + } else if (data.scan) { state = 'scan'; - } elseif (data.ocr && !data.scan) { + } else if (data.ocr && !data.scan) { state = 'ocr'; - } elseif (!data.ocr && !data.scan && data.waiting) { + } else if (!data.ocr && !data.scan && data.waiting) { state = 'waiting'; - } elseif (!data.ocr && !data.scan && !data.waiting) { + } else if (!data.ocr && !data.scan && !data.waiting) { state = 'idle'; } set_state(state);