fix(core): update
This commit is contained in:
@ -12,10 +12,13 @@ export class DeesComms {
|
||||
private subscriptionChannel = new BroadcastChannel('dees-comms');
|
||||
|
||||
constructor() {
|
||||
this.subscriptionChannel.onmessage = (eventArg) => {
|
||||
this.subscriptionChannel.onmessage = async (eventArg) => {
|
||||
const message = eventArg.data;
|
||||
console.log(JSON.stringify(message));
|
||||
this.typedrouter.routeAndAddResponse(message);
|
||||
const response = await this.typedrouter.routeAndAddResponse(message);
|
||||
if (response) {
|
||||
this.postMessage(response);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user