adventskalender/shared/js/lock.js aktualisiert
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user