km: improve dark mode / switching. mt: add worker log to ui
This commit is contained in:
parent
56454d7d24
commit
d0d9e99ede
5 changed files with 39 additions and 9 deletions
|
|
@ -18,6 +18,7 @@ if (moto.client) return;
|
|||
|
||||
gapp.register('moto.client', [
|
||||
"add.array", // dep: add.array
|
||||
"moto.broker", // dep: moto.broker
|
||||
]);
|
||||
|
||||
function dispatch(topic, message) {
|
||||
|
|
@ -211,6 +212,12 @@ let client = moto.client = {
|
|||
return;
|
||||
}
|
||||
|
||||
// handle special case for broker publish
|
||||
if (reply.publish) {
|
||||
gapp.broker.publish(reply.publish, reply.message);
|
||||
return;
|
||||
}
|
||||
|
||||
if (worker.run === null) {
|
||||
console.log({client_unhandled: e});
|
||||
throw "message on idle worker";
|
||||
|
|
|
|||
Loading…
Reference in a new issue