Really fix /poweroff

This commit is contained in:
Matt
2025-12-14 00:17:11 +00:00
parent bc537c158a
commit 2e36b44c7d
2 changed files with 1 additions and 4 deletions

View File

@@ -171,7 +171,7 @@
</div>
<div>
<button id="resetBtn">Reset</button>
<button id="powerOff">Power off</button>
<button id="powerOff"><a style="text-decoration: none; color: inherit" href="/poweroff">Power off</a></button>
</div>
</form>
</div>

View File

@@ -452,9 +452,6 @@ document.getElementById('resetBtn').addEventListener('click', () => {
localStorage.clear();
window.location.reload();
});
document.getElementById('powerOff').addEventListener('click', () => {
window.location.href = "/poweroff";
});
setParams();
connect();