Power off.

This commit is contained in:
Blaz Kristan 2022-03-28 23:07:37 +02:00
parent b583def913
commit ae90aa4ccc
2 changed files with 849 additions and 842 deletions

View File

@ -1254,6 +1254,11 @@ function requestJson(command, rinfo = true) {
function togglePower() {
isOn = !isOn;
var obj = {"on": isOn};
if (isOn && lastinfo && lastinfo.live && lastinfo.liveseg>=0) {
obj.live = false;
obj.seg = [];
obj.seg[0] ={"id": lastinfo.liveseg, "frz": false};
}
requestJson(obj);
}

File diff suppressed because it is too large Load Diff