some logic

This commit is contained in:
2025-06-18 17:06:25 +00:00
parent 4b62925966
commit d92b3435db
2 changed files with 4 additions and 1 deletions

View File

@@ -96,6 +96,9 @@ function toggleMachine() {
});
}
function makeCoffee(){
if (gebId("machine-status-butt").classList.contains("deniePress")){
return;
}
console.log("makeCoffee")
fetch('/unsecure/esp/make_coffee', {method: 'POST'})
.then(res => res.json())