adventskalender/shared/js/lock.js aktualisiert

This commit is contained in:
2025-11-05 21:16:35 +00:00
parent 4d2e02aac5
commit a6e8c0f5fa

View File

@@ -167,13 +167,13 @@ function createDevConsole() {
window.isDoorUnlocked = function (day) {
// wenn wir im dev sind UND es einen simulierten Tag gibt → den nehmen
if (DEV_MODE) {
const sim = getSimulatedDay();
if (sim !== null) {
return parseInt(day, 10) <= sim;
}
// wenn kein sim gesetzt, im dev alles offen
return true;
const sim = getSimulatedDay();
if (sim !== null) {
return parseInt(day, 10) <= sim;
}
// Wenn kein Sim-Tag gesetzt → normale Tageslogik verwenden
return _checkDoorUnlocked(day);
}
// sonst normale Prüfung
return _checkDoorUnlocked(day);