Skip to content

Commit

Permalink
fixed broken js
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMundhenk committed Oct 11, 2024
1 parent 73a5be4 commit 67e7ded
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 67e7ded

Please sign in to comment.