reload if oml restarts between sending out html and connecting to ws
This commit is contained in:
parent
3fd6f8735d
commit
59bbd33a55
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@
|
||||||
if (name == 'updatestatus') {
|
if (name == 'updatestatus') {
|
||||||
update.status.innerHTML = data.status;
|
update.status.innerHTML = data.status;
|
||||||
update.reload = data.reload;
|
update.reload = data.reload;
|
||||||
|
} else if (name == 'status') {
|
||||||
|
reload(); // oml is running
|
||||||
} else {
|
} else {
|
||||||
console.log(name, data);
|
console.log(name, data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue