Fix Two Rivers production age gate
All checks were successful
Build Org Website / build (push) Successful in 44s

This commit is contained in:
gitea-actions
2026-07-31 14:15:42 +01:00
parent 4659edc658
commit 262d943443
4 changed files with 42 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ async function start() {
function showGateOrMenu() {
const age = root.querySelector("[data-tr-age]");
if (saves.ageConfirmed()) {
if (saves.ageConfirmed() || root.dataset.ageConfirmed === "true") {
age.hidden = true;
showMenu();
} else {
@@ -225,6 +225,7 @@ async function start() {
root.querySelector("[data-tr-age-confirm]").addEventListener("click", () => {
saves.confirmAge();
root.querySelector("[data-tr-age]").hidden = true;
loadingEl.hidden = true;
audio.unlock();
showMenu();
});