fix load/moto, add default broker for gapp/moto. gut broken meta app

This commit is contained in:
Stewart Allen 2021-12-27 20:39:07 -05:00
commit b471713917
9 changed files with 35 additions and 3060 deletions

View file

@ -5,7 +5,7 @@
(function() {
let gapp = self.gapp = self.gapp || {},
moto = self.moto = self.moto || {},
moto = self.moto = self.moto || gapp,
time = Date.now;
if (moto.worker) return;
@ -44,7 +44,10 @@ const dispatch = moto.worker = {
}
},
error: (data) => {
dispatch.send({ error: data });
if (canSend(data)) {
done = true;
dispatch.send({ error: data });
}
}
},
canSend = (data) => {