Hab die Waiter.html durch chatgpt gejagt und jetzt geht es.
Das war das Feedback von Chat:
Thanks for sharing the waiter.html file. Based on your earlier error:
Uncaught ReferenceError: SYNC is not defined
And after inspecting your file, the variable SYNC is being used in multiple places like:
doAjax(..., SYNC)
…but it is never defined, which causes the ReferenceError.

Fix Instructions
Step 1: Add this at the top of your script section (near other const declarations):
Just like we added ASYNC, add:
const SYNC = false;
const ASYNC = true;
You can place them right after this block starts:
<script>
var W_TABLES = [...];
Or ideally, right after your first block of constants (like WORKFLOW_DIGI, PERFTIMER_ORDER, etc.).

Example Insert (somewhere near top of <script>):
const SYNC = false; // used for synchronous ajax – mostly discouraged, false is preferred
const ASYNC = true; // used for async ajax
Step 2: Save and Reload
Save waiter.html
Clear your browser cache (or do a hard reload: Ctrl+Shift+R or Cmd+Shift+R)
Try loading the page again

Why This Works
These variables are passed into doAjax(...), which expects a true (async) or false (sync) boolean. But if they're not declared, it throws a ReferenceError.
Hab die Waiter.html durch chatgpt gejagt und jetzt geht es.
Das war das Feedback von Chat:
Thanks for sharing the waiter.html file. Based on your earlier error:
Uncaught ReferenceError: SYNC is not defined
And after inspecting your file, the variable SYNC is being used in multiple places like:
doAjax(..., SYNC)
…but it is never defined, which causes the ReferenceError.
✅ Fix Instructions
Step 1: Add this at the top of your script section (near other const declarations):
Just like we added ASYNC, add:
const SYNC = false;
const ASYNC = true;
You can place them right after this block starts:
<script>
var W_TABLES = [...];
Or ideally, right after your first block of constants (like WORKFLOW_DIGI, PERFTIMER_ORDER, etc.).
✅ Example Insert (somewhere near top of <script>):
const SYNC = false; // used for synchronous ajax – mostly discouraged, false is preferred
const ASYNC = true; // used for async ajax
Step 2: Save and Reload
Save waiter.html
Clear your browser cache (or do a hard reload: Ctrl+Shift+R or Cmd+Shift+R)
Try loading the page again
🧠 Why This Works
These variables are passed into doAjax(...), which expects a true (async) or false (sync) boolean. But if they're not declared, it throws a ReferenceError.