Really fix /poweroff
This commit is contained in:
@@ -171,7 +171,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button id="resetBtn">Reset</button>
|
<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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -452,9 +452,6 @@ document.getElementById('resetBtn').addEventListener('click', () => {
|
|||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
document.getElementById('powerOff').addEventListener('click', () => {
|
|
||||||
window.location.href = "/poweroff";
|
|
||||||
});
|
|
||||||
setParams();
|
setParams();
|
||||||
connect();
|
connect();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user