mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-19 06:37:13 +01:00
webui(ws): try to contain wsSend to the queue callback
- 'log' payload nesting reduced, just one element (for now) - move terminal and ws logger into ws helper classes - 'manual' callback mode to simply allow for ws send window by using slightly more complicated loop w/ queue checks, though
This commit is contained in:
@@ -84,13 +84,8 @@ function listeners() {
|
||||
"log": (_, value) => {
|
||||
send("{}");
|
||||
|
||||
const messages = value["msg"];
|
||||
if (messages === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (let msg of messages) {
|
||||
CmdOutput.push(msg);
|
||||
for (const message of value) {
|
||||
CmdOutput.push(message);
|
||||
}
|
||||
|
||||
CmdOutput.follow();
|
||||
|
||||
Reference in New Issue
Block a user