UI: promote V2 as default and keep ?ui=v1 fallback

This commit is contained in:
Ponte
2026-02-14 23:40:40 +01:00
parent d50869564c
commit 9d350c2e09
2 changed files with 4 additions and 2 deletions

4
app.js
View File

@@ -90,7 +90,9 @@ let scannerRunning = false;
let scannerLoopId = null;
let scannerLastCodeValue = "";
let scannerLastCodeAt = 0;
const uiV2Enabled = new URLSearchParams(window.location.search).get("ui") === "v2";
// V2 is now the default UI. Use ?ui=v1 to force legacy mode if needed.
const uiParam = new URLSearchParams(window.location.search).get("ui");
const uiV2Enabled = uiParam !== "v1";
let v2SearchTerm = "";
let v2ConsoleValue = "";
let v2GenreValue = "";