Really fix /poweroff
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user